File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Sources/metamask-ios-sdk/Classes Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import Foundation
7
7
8
+ /**
9
+ An enum representing the communication types supported for communication with MetaMask wallet
10
+ **/
8
11
public enum Transport : CaseIterable , Identifiable , Hashable {
12
+ /// Uses socket.io as a transport mechanism
9
13
case socket
14
+ /// Uses deeplinking as transport mechanism. Recommended. Requires setting URI scheme
10
15
case deeplinking( dappScheme: String )
11
16
12
17
public var id : String {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public class MetaMaskSDK: ObservableObject {
81
81
}
82
82
83
83
public static func shared( _ appMetadata: AppMetadata ,
84
- transport: Transport = . socket ,
84
+ transport: Transport ,
85
85
enableDebug: Bool = true ,
86
86
sdkOptions: SDKOptions ? ) -> MetaMaskSDK {
87
87
guard let sdk = SDKWrapper . shared. sdk else {
You can’t perform that action at this time.
0 commit comments