PositionProvider

interface PositionProvider

Functions

Link copied to clipboard
abstract fun addOnPositionUpdateListener(@Nullable listener: OnPositionUpdateListener)
Link copied to clipboard
abstract fun addOnStateChangedListener(@Nullable onStateChangedListener: OnStateChangedListener)
Link copied to clipboard
abstract fun checkPermissionsAndPSEnabled(@Nullable permissionAPSlist: PermissionsAndPSListener)
Link copied to clipboard
@Nullable
abstract fun getLatestPosition(): PositionResult
Link copied to clipboard
@Nullable
abstract fun getProviderId(): String
Link copied to clipboard
@NonNull
abstract fun getRequiredPermissions(): Array<String>
Link copied to clipboard
abstract fun isPSEnabled(): Boolean
Link copied to clipboard
abstract fun isRunning(): Boolean
Link copied to clipboard
abstract fun removeOnPositionUpdateListener(@Nullable listener: OnPositionUpdateListener)
Link copied to clipboard
abstract fun removeOnStateChangedListener(@Nullable onStateChangedListener: OnStateChangedListener)
Link copied to clipboard
abstract fun setProviderId(@Nullable id: String)
Link copied to clipboard
abstract fun startPositioning(@Nullable arg: String)
Link copied to clipboard
abstract fun startPositioningAfter(delayInMs: Int, @Nullable arg: String)
Link copied to clipboard
abstract fun stopPositioning(@Nullable arg: String)
Link copied to clipboard
abstract fun terminate()
Call this from your activity's onDestroy method, etc.