BeaconScannerAndroid class
An implementation of BeaconScannerPlatform for Android.
- Inheritance
-
- Object
- PlatformInterface
- BeaconScannerAndroid
Constructors
Properties
-
Check for the latest
AuthorizationStatusfrom device.no setter -
bluetoothState
→ Future<
BluetoothState> -
Check for the latest
BluetoothStatefrom device.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
- Start checking for location service authorization status changed.
-
bluetoothStateChanged(
) → Stream< BluetoothState> - Start checking for bluetooth state changed.
-
checkLocationServicesIfEnabled(
) → Future< bool> -
Return
truewhen location service is enabled, otherwisefalse. -
close(
) → Future< bool> - Close scanning API.
-
initialize(
) → Future< bool> - Initialize scanning API.
-
initializeAndCheckScanning(
) → Future< bool> - Initialize scanning API and check required permissions.
-
isBroadcastSupported(
) → Future< bool> - If the device can act like a beacon (advertising BLE-Frames)
-
monitoring(
List< Region> regions) → Stream<MonitoringResult> -
Start monitoring iBeacons with defined List of
Regions. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openApplicationSettings(
) → Future< bool> - Request to open Application Settings from device.
-
openBluetoothSettings(
) → Future< bool> - Request to open Bluetooth Settings from device.
-
openLocationSettings(
) → Future< bool> - Request to open Locations Settings from device.
-
ranging(
List< Region> regions) → Stream<ScanResult> -
Start ranging iBeacons with defined List of
Regions. -
requestAuthorization(
) → Future< bool> - Request an authorization to the device.
-
setLocationAuthorizationTypeDefault(
AuthorizationStatus authorizationStatus) → Future< bool> -
Set the default AuthorizationStatus to use in requesting location authorization.
For iOS, this can be either
AuthorizationStatus.whenInUseorAuthorizationStatus.always. For Android, this is not used. -
setScanDuration(
int scanDuration) → Future< bool> - Customize duration spent not scanning between each scan cycle on the Android Platform.
-
setScanPeriod(
int scanPeriod) → Future< bool> - Customize duration of the beacon scan on the Android Platform.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void -
Registers this class as the default instance of
BeaconScannerPlatform.