LiveLocationPlatform class abstract
Abstract platform interface for live location tracking.
Platform-specific implementations (Android, iOS) must extend this class and implement all abstract methods.
- Inheritance
-
- Object
- PlatformInterface
- LiveLocationPlatform
- Implementers
Constructors
- LiveLocationPlatform()
- Constructs a LiveLocationPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBackgroundLocation ↔ void Function(LocationUpdate)?
-
Invoked by the platform channel layer when a background location arrives.
getter/setter pair
- onForegroundLocation ↔ void Function(LocationUpdate)?
-
Invoked by the platform channel layer when a foreground location arrives.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Disposes the platform-specific resources.
-
initialize(
{required LocationConfig config}) → Future< void> - Initializes the platform-specific implementation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onStreamCancelled(
) → void - Called when all listeners unsubscribe from the location stream.
-
onStreamListened(
) → void - Called when a listener subscribes to the location stream.
-
startNativeTracking(
LocationConfig config) → Future< void> - Starts native location tracking with the given configuration.
-
stopNativeTracking(
) → Future< void> - Stops native location tracking.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ LiveLocationPlatform
-
The default instance of LiveLocationPlatform to use.
getter/setter pair