MethodChannelTightFlutter class
An implementation of TightFlutterPlatform that uses method and event channels.
- Inheritance
-
- Object
- PlatformInterface
- TightFlutterPlatform
- MethodChannelTightFlutter
Constructors
Properties
- eventChannel → EventChannel
-
The event channel used to receive native TightEvents.
final
-
events
→ Stream<
TightEvent> -
A broadcast stream of native
TightEvents (bridgedTightDelegate).no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to invoke native methods.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBluetoothDevices(
) → Future< List< TightBluetoothDevice> > -
Lists Bluetooth devices known to the SDK.
override
-
getCurrentDrive(
) → Future< TightDrive?> -
Reads the current (or most recent) drive, if any.
override
-
getMileageDetectionMode(
) → Future< MileageDetectionMode> -
Reads the current mileage detection mode.
override
-
getMileagePermissions(
) → Future< TightPermissions> -
Reads the current permission state without prompting.
override
-
initialize(
{required String accessToken}) → Future< void> -
Initialises the SDK for a user with a backend-minted
accessToken.override -
isSetup(
) → Future< bool> -
Whether the SDK is set up for the current user.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestBluetoothPermissions(
) → Future< TightPermissions> -
Requests the Bluetooth permissions used for automatic drive detection.
override
-
requestMileagePermissions(
) → Future< TightPermissions> -
Requests the mileage tracking permissions and returns the resulting
permission state.
override
-
saveBluetoothDevice(
TightBluetoothDevice device) → Future< bool> -
Saves
deviceas an automatic drive-detection trigger.override -
setMileageDetectionMode(
MileageDetectionMode mode) → Future< void> -
Sets the mileage detection
mode.override -
startSemiAutoDrive(
) → Future< void> -
Starts a semi-automatic drive.
override
-
stopDrive(
) → Future< void> -
Stops the current drive.
override
-
teardown(
) → Future< void> -
Tears the SDK down (e.g. on logout).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited