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
addRegion
takes aGeofenceRegion
object, 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 -
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
getBLEPermissionsStatus
returns the status of permissions by invoking a method on a method channel. @returns The method is returning aFuture
object that resolves to aString
ornull
.override -
getIndoorBeacons(
String? venueID, String? ref) → Future< List< IndoorBeacon> ?> -
The function
getIndoorBeacons
returns a Future that retrieves a list of IndoorBeacon objects inside an indoor venue using the GeofencingFlutterPluginPlatform. @param {String}venueID
- The optionalvenueID
parameter is a String that represents the ID of an indoor venue for which the beacons will be fetched. @param {String}ref
- The optionalref
parameter is a String that represents the identifier of the beacon which needs to be fetched. @returns The method is returning aFuture
object 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
getLocations
retrieves a list of locations from a method channel and converts the JSON response into a list ofLocation
objects. @param {String}locationId
- ThelocationId
parameter is an optional parameter of typeString
. It is used to specify a specific location ID for retrieving locations. If nolocationId
is provided, all locations will be retrieved. @returns The method is returning a Future object that resolves to a List of Location objects.override -
getPermissionsStatus(
) → Future< String?> -
The function
getPermissionsStatus
returns the status of permissions by invoking a method on a method channel. @returns The method is returning aFuture
object that resolves to aString
ornull
.override -
getPlatformVersion(
) → Future< String?> -
The function
getPlatformVersion
returns the platform version as aString
using themethodChannel
in 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
getPois
retrieves a list of Poi objects from a method channel in Dart. @param {String}poiID
- ThepoiID
parameter is an optional string that represents the ID of a specific point of interest (POI). If apoiID
is provided, the method will retrieve the POI with that specific ID. If nopoiID
is 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
getRegions
retrieves a list of regions from a method channel and converts the JSON response into a list ofRegion
objects. @param {String}regionId
- TheregionId
parameter is an optional parameter of typeString
. It is used to specify a specific region ID for which you want to retrieve the regions. IfregionId
is 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
refreshPois
is an asynchronous method that invokes a method channel to refresh points of interest (POIs) and returns aString
value. @returns The method is returning a Future object that resolves to a String or null.override -
removeIndoorBeacons(
) → Future< String?> -
The function
removeIndoorPois
is an asynchronous method that invokes a method channel to remove indoor points of interest (POIs) and returns aString
value. @returns The method is returning a Future object that resolves to a String or null.override -
removeLocations(
) → Future< String?> -
The function
removeLocations
is an asynchronous method that invokes a method on a method channel and returns aFuture
of typeString
ornull
. @returns The method is returning aFuture
object that resolves to aString
ornull
.override -
removePois(
) → Future< String?> -
The function
removePois
is an asynchronous method that invokes a method channel to remove points of interest (POIs) and returns aString
value. @returns The method is returning a Future object that resolves to a String or null.override -
removeRegions(
[String? regionId]) → Future< String?> -
The function
removeRegions
is an asynchronous method that removes regions based on the providedregionId
and returns aFuture
of typeString
. @param {String}regionId
- TheregionId
parameter is an optional string that represents the ID of a region. It is used to specify which region should be removed. If noregionId
is 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
requestBLEPermissions
in 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 -
requestPermissions(
[dynamic background]) → Future< String?> -
The function
requestPermissions
in Dart is used to request permissions and returns a Future that resolves to a String. @parambackground
- Thebackground
parameter is an optional boolean parameter that indicates whether the permissions should be requested in the background or not. Ifbackground
is 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
radius
parameter 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 -
setSFMCCredentials(
Map< String, String> credentials) → Future<String?> -
The function
setSFMCCredentials
sets the SFMC credentials using the provided map of credentials. @param {Map<String, String>} credentials - Thecredentials
parameter is aMap
object 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
apiKey
parameter 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
startCustomTracking
takes aProfileSource
and asource
as arguments, converts them into a map of arguments, invokes a method calledstartCustomTracking
using a method channel, and returns the result as aFuture<String?>
. @param {ProfileSource} sourceType - ThesourceType
parameter is of typeProfileSource
and represents the type of the profile source. It could be an enum value or a string that indicates the source type. @param {String} source - Thesource
parameter 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 methodstartCustomTracking
returns aFuture
of typeString?
.override -
startTracking(
dynamic trackingProfile) → Future< String?> -
The function
startTracking
invokes a method on a method channel and returns aFuture
that resolves to aString
ornull
. @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
stopTracking
invokes 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
watchLocation
checks 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
watchRegion
checks 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