Advertiser class

Class that represent the Advertiser instance of NearbyCross plugin.

Inheritance

Constructors

Advertiser()
Implements singleton pattern
factory

Properties

connectionsManager ConnectionsManager
The ConnectionsManager instance
getter/setter pairinherited
deviceInfo Uint8List
The device info of the current device
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isAdvertising bool
Flag to check if the device is advertising
getter/setter pair
isConnected bool
Boolean value that returns if the device is connected to another device
no setterinherited
logger ↔ Logger
getter/setter pairinherited
nearbyCross NearbyCross
The NearbyCross instance
getter/setter pairinherited
platformVersion String?
The platform version of the native code
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Service to start advertising using NearbyCross plugin
connect(String endpointId) Future<void>
Connect to an endpoint
inherited
disconnectFrom(String endpointId) Future<void>
Disconnects from the given endpoint
inherited
getPlatformVersion() Future<String?>
Returns the platform version of the native code
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermissions() Future<void>
Function that request permissions necessary for the plugin to work
inherited
stopAdvertising() Future<void>
stopAllConnections() Future<void>
Stops all connections
inherited
toString() String
A string representation of this object.
inherited

Operators

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