Beacon class
Provide Beacon API for both Android and iOS.
Constructors
- Beacon()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addPeer(
{required String pairingRequest}) → Future< Map> - Pair wallet with dApp using P2PPeer data
-
broadcastResponse(
{required String id, required String? transactionHash}) → Future< Map> -
send broadcast response
id
beacon request idtransactionHash
transactionHash using signedTransaction -
getBeaconResponse(
) → Stream< String> - listen to beacon response
-
getPeers(
) → Future< Map> - get list of daPPs connected
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
operationResponse(
{required String id, required String? transactionHash}) → Future< Map> -
send operation response
id
beacon request idtransactionHash
transactionHash from the operation -
pair(
{required String pairingRequest}) → Future< Map> -
Pair wallet with dApp using
pairingRequest
-
pairingRequestToP2P(
{required String pairingRequest}) → Map< String, dynamic> -
convert
pairingRequest
to P2PPeer data -
pause(
) → Future< Map> - pause connection with dApp support iOS only
-
permissionResponse(
{required String id, required String? publicKey, required String? address}) → Future< Map> -
send permission response
id
beacon request idpublicKey
public key of crypto accountaddress
wallet address key of crypto account -
removePeers(
) → Future< Map> - remove all peers
-
removePeerUsingPairingRequest(
{required String pairingRequest}) → Future< Map> -
remove connection with single dApp using
pairingRequest
-
removePeerUsingPublicKey(
{required String publicKey}) → Future< Map> -
remove connection with single dApp using
publicKey
-
respondExample(
) → Future< void> - example responses to test
-
resume(
) → Future< Map> - resume connection with dApp support iOS only
-
signPayloadResponse(
{required String id, required String? signature, SigningType type = SigningType.micheline}) → Future< Map> -
send sign payload response
id
beacon request idsignature
signature using payloadtype
signing type of payload -
startBeacon(
{required String walletName}) → Future< Map> - Initialize beacon
-
stop(
) → Future< Map> - stop connection with dApp support iOS only
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited