isSupported
TypeScriptstatic isSupported(): booleanSwift declarationclass func isSupported() -> Boolclass · iOS 9.0+ · SDK 27.1
class WCSessionstatic isSupported(): booleanSwift declarationclass func isSupported() -> Boolstatic get default(): WCSessionSwift declarationclass var `default`: WCSession { get }activate(): voidSwift declarationfunc activate()sendMessage(message: Record<string, unknown>, replyHandler?: (((arg0: Record<string, unknown>) => void)) | null, errorHandler?: (((arg0: NativeError) => void)) | null): voidSwift declarationfunc sendMessage(_ message: [String : Any], replyHandler: (([String : Any]) -> Void)?, errorHandler: ((any Error) -> Void)? = nil)sendMessageData(data: ArrayBuffer, replyHandler?: (((arg0: ArrayBuffer) => void)) | null, errorHandler?: (((arg0: NativeError) => void)) | null): voidSwift declarationfunc sendMessageData(_ data: Data, replyHandler: ((Data) -> Void)?, errorHandler: ((any Error) -> Void)? = nil)transferCurrentComplicationUserInfo(userInfo?: Record<string, unknown>): WCSessionUserInfoTransferSwift declarationfunc transferCurrentComplicationUserInfo(_ userInfo: [String : Any] = [:]) -> WCSessionUserInfoTransfertransferFile(file: string, metadata?: (Record<string, unknown>) | null): WCSessionFileTransferSwift declarationfunc transferFile(_ file: URL, metadata: [String : Any]?) -> WCSessionFileTransfertransferUserInfo(userInfo?: Record<string, unknown>): WCSessionUserInfoTransferSwift declarationfunc transferUserInfo(_ userInfo: [String : Any] = [:]) -> WCSessionUserInfoTransferupdateApplicationContext(applicationContext: Record<string, unknown>): voidSwift declarationfunc updateApplicationContext(_ applicationContext: [String : Any]) throwsget activationState(): WCSessionActivationStateSwift declarationvar activationState: WCSessionActivationState { get }get applicationContext(): Record<string, unknown>Swift declarationvar applicationContext: [String : Any] { get }get isComplicationEnabled(): booleanSwift declarationvar isComplicationEnabled: Bool { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any WCSessionDelegate)? { get set }set delegate(value: (Implements<WCSessionDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any WCSessionDelegate)? { get set }get hasContentPending(): booleanSwift declarationvar hasContentPending: Bool { get }get outstandingFileTransfers(): Array<WCSessionFileTransfer>Swift declarationvar outstandingFileTransfers: [WCSessionFileTransfer] { get }get outstandingUserInfoTransfers(): Array<WCSessionUserInfoTransfer>Swift declarationvar outstandingUserInfoTransfers: [WCSessionUserInfoTransfer] { get }get isPaired(): booleanSwift declarationvar isPaired: Bool { get }get isReachable(): booleanSwift declarationvar isReachable: Bool { get }get receivedApplicationContext(): Record<string, unknown>Swift declarationvar receivedApplicationContext: [String : Any] { get }get remainingComplicationUserInfoTransfers(): numberSwift declarationvar remainingComplicationUserInfoTransfers: Int { get }get isWatchAppInstalled(): booleanSwift declarationvar isWatchAppInstalled: Bool { get }get watchDirectoryURL(): (string) | nullSwift declarationvar watchDirectoryURL: URL? { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
WCSession.init()
inherited init: clang: 'init' is unavailable