MethodChannelFlutterGrouplinkSdk class

An implementation of FlutterGrouplinkSdkPlatform that uses method channels.

Inheritance

Properties

eventChannel EventChannel
The event channel used to receive events from the native platform. This event channel is used to listen for events related to the Grouplink SDK, such as Bluetooth and location updates.
final
hashCode int
The hash code for this object.
no setterinherited
iOSSDKChannel MethodChannel
The method channel used for iOS-specific functionality. This method channel is used to communicate with the native iOS platform for starting the Grouplink SDK, managing Bluetooth and location services, and handling notifications.
final
methodChannel MethodChannel
This method channel is used to communicate with the native platform for starting the Grouplink SDK, managing Bluetooth and location services, and handling notifications.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

askForAutoStartPermissionAndroid() Future<void>
override
checkBluetooth() Future<void>
Checks if Bluetooth is enabled on the device. This method uses platform-specific method channels to check the Bluetooth status.
override
getNotificationName() Future<void>
Retrieves the name of the notification. This method is used to get the notification name that has been set for the Grouplink SDK.
override
getPlatformVersion() Future<void>
Retrieves the platform version of the Grouplink SDK. This method is used to get the version of the SDK running on the device.
override
getUserId() Future<String?>
Retrieves the user ID associated with the Grouplink SDK.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPermissionsGranted() Future<void>
Called when the necessary permissions for the Grouplink SDK are granted. This method is typically called after the user has granted permissions for location and Bluetooth.
override
requestFullscreenIntentPermission() Future<void>
Requests permission for fullscreen intent on Android. This is typically used on Android to allow the app to display notifications in fullscreen mode.
override
requestScheduleExactAlarm() Future<void>
Requests permission for schedule exact alarm on Android. This is typically used on Android to allow the app to schedule exact alarms.
override
requestSystemAlertWindowAndroid() Future<void>
override
setNotificationName(String notificationName) Future<void>
Sets the name for the notification. This method allows customization of the notification name that will be displayed to the user.
override
setNotificationResId(int notificationResId) Future<void>
Sets the resource ID for the notification.
override
setNotificationToken(String token) Future<void>
Sets the notification token for the Grouplink SDK. This method is used to register the device for push notifications.
override
setUserIdListenerAndroid() Future<void>
override
startBluetooth() Future<void>
Starts the Bluetooth services for the Grouplink SDK. This method is used to enable Bluetooth functionality.
override
startLocation() Future<void>
Starts the location services for the Grouplink SDK. This method is used to enable location tracking. It checks the platform and invokes the appropriate method channel. This method is typically called after the SDK has been initialized.
override
startSDK(String token) Future<void>
Starts the Grouplink SDK with the provided token. This method initializes the SDK on both Android and iOS platforms. It uses platform-specific method channels to invoke the native SDK methods.
override
startSDKAndroid(String token) Future<void>
Starts the Grouplink SDK specifically for Android with the provided token. This method is used to initialize the SDK on Android devices. It uses the method channel to invoke the native Android SDK method.
override
startSDKiOS(String token) Future<void>
Starts the Grouplink SDK specifically for iOS with the provided token. This method is used to initialize the SDK on iOS devices. It uses the iOS-specific method channel to invoke the native iOS SDK method.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited