OZSmartAccountEventType
public enum OZSmartAccountEventType : String, Sendable, CaseIterable
Type-tag enumeration used to register typed subscriptions on
OZSmartAccountEventEmitter.
Swift enum cases do not have nested types, so a parallel enum carries the
per-arm type tag used by on(_:listener:) and
once(_:listener:). The raw value is the stable
string key consumed by removeAllListeners(eventType:)
and listenerCount(eventType:).
Example:
let unsubscribe = emitter.on(.walletConnected) { event in
if case let .walletConnected(contractId, _) = event {
print("Connected to \(contractId)")
}
}
-
Undocumented
Declaration
Swift
case walletConnected = "WalletConnected" -
Undocumented
Declaration
Swift
case walletDisconnected = "WalletDisconnected" -
Undocumented
Declaration
Swift
case credentialCreated = "CredentialCreated" -
Undocumented
Declaration
Swift
case credentialDeleted = "CredentialDeleted" -
Undocumented
Declaration
Swift
case sessionExpired = "SessionExpired" -
Undocumented
Declaration
Swift
case transactionSigned = "TransactionSigned" -
Undocumented
Declaration
Swift
case transactionSubmitted = "TransactionSubmitted" -
Undocumented
Declaration
Swift
case credentialSyncFailed = "CredentialSyncFailed" -
Stable string tag used as the listener-map key.
Declaration
Swift
public var tag: String { get }
View on GitHub
Install in Dash