MethodChannelGeofencingFlutterPlugin class
An implementation of GeofencingFlutterPluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- GeofencingFlutterPluginPlatform
- MethodChannelGeofencingFlutterPlugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRegion(
GeofenceRegion geofenceRegion) → Future< String?> -
The function
addRegiontakes aGeofenceRegionobject, converts it to a JSON map, and invokes a method on a channel with the arguments, returning the result as aFuture<String?>. @param {GeofenceRegion} geofenceRegion - The geofenceRegion parameter is an instance of the GeofenceRegion class. It represents a geographical region for which you want to add a geofence. @returns The method is returning a Future object that resolves to a String or null.override -
clearLocationWatch(
) → Future< String?> -
The function clears the location watch and returns a string value.
@returns The method is returning a
Future<String?>.override -
clearProtectedRegionSlot(
) → Future< String?> -
(Only for iOS platform) Clear region slots to reserve for any third party SDK.
override
-
clearRegionWatch(
) → Future< String?> -
The function clears the region watch and returns a string value.
@returns The method is returning a
Future<String?>.override -
getBLEPermissionsStatus(
) → Future< String?> -
The function
getBLEPermissionsStatusreturns the status of permissions by invoking a method on a method channel. @returns The method is returning aFutureobject that resolves to aStringornull.override -
getIndoorBeacons(
String? venueID, String? ref) → Future< List< IndoorBeacon> ?> -
The function
getIndoorBeaconsreturns a Future that retrieves a list of IndoorBeacon objects inside an indoor venue using the GeofencingFlutterPluginPlatform. @param {String}venueID- The optionalvenueIDparameter is a String that represents the ID of an indoor venue for which the beacons will be fetched. @param {String}ref- The optionalrefparameter is a String that represents the identifier of the beacon which needs to be fetched. @returns The method is returning aFutureobject that resolves to a List of IndoorBeacon objects for the given venue or the given ref or both.override -
getLocations(
[String? locationId]) → Future< List< Location> ?> -
The function
getLocationsretrieves a list of locations from a method channel and converts the JSON response into a list ofLocationobjects. @param {String}locationId- ThelocationIdparameter is an optional parameter of typeString. It is used to specify a specific location ID for retrieving locations. If nolocationIdis provided, all locations will be retrieved. @returns The method is returning a Future object that resolves to a List of Location objects.override -
getNotificationPermissionsStatus(
) → Future< String?> -
The function
getNotificationPermissionsStatusreturns the status of permissions by invoking a method on a method channel. @returns The method is returning aFutureobject that resolves to aStringornull.override -
getPermissionsStatus(
) → Future< String?> -
The function
getPermissionsStatusreturns the status of permissions by invoking a method on a method channel. @returns The method is returning aFutureobject that resolves to aStringornull.override -
getPlatformVersion(
) → Future< String?> -
The function
getPlatformVersionreturns the platform version as aStringusing themethodChannelin Dart. @returns The method is returning a Future object that resolves to a String or null value.override -
getPois(
[String? poiID]) → Future< List< Poi> ?> -
The function
getPoisretrieves a list of Poi objects from a method channel in Dart. @param {String}poiID- ThepoiIDparameter is an optional string that represents the ID of a specific point of interest (POI). If apoiIDis provided, the method will retrieve the POI with that specific ID. If nopoiIDis provided, the method will retrieve all available @returns The method is returning a Future object that resolves to a List of Poi objects.override -
getRegions(
[String? regionId]) → Future< List< Region> ?> -
The function
getRegionsretrieves a list of regions from a method channel and converts the JSON response into a list ofRegionobjects. @param {String}regionId- TheregionIdparameter is an optional parameter of typeString. It is used to specify a specific region ID for which you want to retrieve the regions. IfregionIdis not provided, the method will retrieve all regions. @returns The method is returning a Future object that resolves to a List of Region objects.override -
getWatchLocationStream(
) → Stream< Location> ? -
The function returns a stream of location updates by listening to a broadcast stream and
converting the received data into Location objects.
@returns The method is returning a Stream of Location objects.
override
-
getWatchRegionStream(
) → Stream< Region> ? -
The function returns a stream of Region objects received from a broadcast stream.
@returns The method is returning a Stream of Region objects.
override
-
initialize(
[dynamic args]) → Future< String?> -
The function initializes a method channel and invokes a method with arguments, returning a future
string.
@param
args- The "args" parameter is an optional argument that can be passed to the "initialize" method. It can be of any type, depending on the requirements of the method. @returns The method is returning aFuture<String?>.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshPois(
) → Future< String?> -
The function
refreshPoisis an asynchronous method that invokes a method channel to refresh points of interest (POIs) and returns aStringvalue. @returns The method is returning a Future object that resolves to a String or null.override -
removeIndoorBeacons(
) → Future< String?> -
The function
removeIndoorPoisis an asynchronous method that invokes a method channel to remove indoor points of interest (POIs) and returns aStringvalue. @returns The method is returning a Future object that resolves to a String or null.override -
removeLocations(
) → Future< String?> -
The function
removeLocationsis an asynchronous method that invokes a method on a method channel and returns aFutureof typeStringornull. @returns The method is returning aFutureobject that resolves to aStringornull.override -
removePois(
) → Future< String?> -
The function
removePoisis an asynchronous method that invokes a method channel to remove points of interest (POIs) and returns aStringvalue. @returns The method is returning a Future object that resolves to a String or null.override -
removeRegions(
[String? regionId]) → Future< String?> -
The function
removeRegionsis an asynchronous method that removes regions based on the providedregionIdand returns aFutureof typeString. @param {String}regionId- TheregionIdparameter is an optional string that represents the ID of a region. It is used to specify which region should be removed. If noregionIdis provided, all regions will be removed. @returns The method is returning a Future object that resolves to a String value or null.override -
requestBLEPermissions(
) → Future< String?> -
The function
requestBLEPermissionsin Dart is used to request BLE permissions and returns a Future that resolves to a String. @returns The method is returning a Future object that resolves to a String or null.override -
requestNotificationPermissions(
) → Future< String?> -
The function
requestBLEPermissionsin Dart is used to request notification permissions and returns a Future that resolves to a String. @returns The method is returning a Future object that resolves to a String or null.override -
requestPermissions(
[dynamic background]) → Future< String?> -
The function
requestPermissionsin Dart is used to request permissions and returns a Future that resolves to a String. @parambackground- Thebackgroundparameter is an optional boolean parameter that indicates whether the permissions should be requested in the background or not. Ifbackgroundis not provided, it defaults tofalse. @returns The method is returning a Future object that resolves to a String or null.override -
setPoiRadius(
String radius) → Future< String?> -
The function sets the radius for points of interest (POI) and returns a Future with the result.
@param {String} radius - The
radiusparameter is a string that represents the radius value for a point of interest (POI). It is used to set the radius of the POI in the methodsetPoiRadius. @returns The method is returning a Future object that resolves to a String or null.override -
setProtectedRegionSlot(
int slots) → Future< String?> -
(Only for iOS platform) Free up region slots to reserve for any third party SDK. Maximum 3 slots allows
override
-
setSFMCCredentials(
Map< String, String> credentials) → Future<String?> -
The function
setSFMCCredentialssets the SFMC credentials using the provided map of credentials. @param {Map<String, String>} credentials - Thecredentialsparameter is aMapobject that contains key-value pairs of SFMC credentials. The keys represent the credential names (e.g., "clientId", "clientSecret", "accessToken"), and the values represent the corresponding credential values. @returns The method is returning a Future object that resolves to a String or null.override -
setWoosmapApiKey(
dynamic apiKey) → Future< String?> -
The function sets the Woosmap API key and returns a future string.
@param apiKey - The
apiKeyparameter is a string that represents the Woosmap API key. It is used to authenticate and authorize your application to access the Woosmap services. @returns The method is returning a Future object that resolves to a String or null value.override -
startCustomTracking(
ProfileSource sourceType, String source) → Future< String?> -
The function
startCustomTrackingtakes aProfileSourceand asourceas arguments, converts them into a map of arguments, invokes a method calledstartCustomTrackingusing a method channel, and returns the result as aFuture<String?>. @param {ProfileSource} sourceType - ThesourceTypeparameter is of typeProfileSourceand represents the type of the profile source. It could be an enum value or a string that indicates the source type. @param {String} source - Thesourceparameter is a string that represents the source of the tracking. It could be a URL, a file path, or any other identifier that helps identify the source of the tracking data. @returns The methodstartCustomTrackingreturns aFutureof typeString?.override -
startTracking(
dynamic trackingProfile) → Future< String?> -
The function
startTrackinginvokes a method on a method channel and returns aFuturethat resolves to aStringornull. @param trackingProfile - The trackingProfile parameter is the profile or configuration that you want to use for tracking. It could be an object or a string that contains the necessary information for starting the tracking process. @returns The method is returning a Future object that resolves to a String or null.override -
stopTracking(
) → Future< String?> -
The function
stopTrackinginvokes a method called 'stopTracking' using a method channel and returns the result as a Future of type String. @returns The method is returning aFuture<String?>.override -
toString(
) → String -
A string representation of this object.
inherited
-
watchLocation(
) → Future< String?> -
The function
watchLocationchecks if a location stream is already added and returns the location if available, otherwise throws an error. @returns The methodwatchLocation()returns aFuture<String?>.override -
watchRegion(
) → Future< String?> -
The function
watchRegionchecks if a region stream is already added and returns the value if not, otherwise throws an error. @returns The method is returning aFuture<String?>.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited