SolanaWalletAdapterPlatform class abstract
Solana Wallet Adapter Platform
The interface that implementations of solana_wallet_adapter
must extend
.
- Inheritance
-
- Object
- PlatformInterface
- SolanaWalletAdapterPlatform
Constructors
- SolanaWalletAdapterPlatform()
- Solana Wallet Adapter Platform interface for the Mobile Wallet Adapter Specification.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDesktopBrowser → bool
-
** For Desktop Browsers Only **
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → StoreInfo
-
Returns the platform's store handler.
no setter
Methods
-
encodeAccount(
Account account) → String -
Encodes
account
to an encoded public key address that can passed to the adapter'ssign message
method. -
encodeMessage(
String message) → String -
Encodes a utf-8
message
to an encoded string that can passed to the adapter'ssign message
method. -
encodeTransaction(
TransactionSerializableMixin transaction, {required TransactionSerializableConfig config}) → String -
Serializes
transaction
to an encoded string that can passed to the adapter'ssign transaction
methods. -
initializeWeb(
AuthorizeResult? result, WebListener listener) → Future< void> - ** For Desktop Browsers Only **
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openUri(
Uri uri, [String? target]) → Future< bool> -
Launches
uri
and returns true if successful. -
openWallet(
Uri uri) → Future< bool> -
Launches a wallet application for the association
uri
. -
scenario(
{Duration? timeLimit}) → Scenario - Returns the platform's scenario handler.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ SolanaWalletAdapterPlatform
-
The platform specific implementation.
getter/setter pair
Constants
- channelName → const String
- The method channel name.