@RequiresPermission(["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_BACKGROUND_LOCATION"]) abstract fun enableGeofenceMessaging(): Boolean
Enables geofence messaging. This will only succeed if:
com.salesforce.marketingcloud.MarketingCloudConfig.Builder#setGeofencingEnabled(boolean)
(boolean)} was set to trueManifest.permission#ACCESS_FINE_LOCATION
permission has been granted.Manifest.permission#ACCESS_BACKGROUND_LOCATION
permission has been granted on Android Q+.Return
Boolean: True if geofence messaging was successfully enabled