MobileAssociationScenario class

Mobile Association Scenario

A scenario for connecting to a wallet application running on a mobile device.

Inheritance

Constructors

MobileAssociationScenario({int? port, required Duration? timeLimit})
Creates a local association between the dApp and wallet endpoint, which can be used to make method calls within a secure session.

Properties

association Association
The scenario's Association information.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeLimit Duration?
The default timeout duration applied to a connect call.
finalinherited

Methods

connect({Duration? timeLimit, Uri? walletUriBase}) Future<Session>
Establishes an encrypted session between the dApp and wallet endpoints.
inherited
dispose() Future<void>
Releases all acquired resources.
inherited
initialize(JsonRpcWebsocketClient client, Uri walletUri, {Duration? timeLimit}) Future<void>
Performs any setup required by the scenario prior to establishing an encrypted session (e.g. launching the mobile wallet application or waiting for a ping frame).
override
isWebsocketPing(List<int> data) bool
Returns true if data is an APP_PING message.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWebsocketPing(List<int> data) → void
Called when the dApp receives an APP_PING message from the wallet endpoint.
inherited
session(JsonRpcWebsocketClient<List<int>> client) FutureOr<Session>
Returns the JSON RPC API for the connected client.
inherited
toString() String
A string representation of this object.
inherited

Operators

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