dismissTemplate
TypeScriptdismissTemplate(animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc dismissTemplate(animated: Bool) async throws -> Boolclass · iOS 12.0+ · SDK 27.1
@MainActor class CPInterfaceControllerdismissTemplate(animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc dismissTemplate(animated: Bool) async throws -> BoolhideOverlayTemplate(animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc hideOverlayTemplate(animated: Bool) async throws -> BoolpopTemplate(animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc popTemplate(animated: Bool) async throws -> BoolpopToRootTemplate(animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc popToRootTemplate(animated: Bool) async throws -> Boolpop(targetTemplate: CPTemplate, animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc pop(to targetTemplate: CPTemplate, animated: Bool) async throws -> BoolpresentTemplate(templateToPresent: CPTemplate, animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc presentTemplate(_ templateToPresent: CPTemplate, animated: Bool) async throws -> BoolpushTemplate(templateToPush: CPTemplate, animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc pushTemplate(_ templateToPush: CPTemplate, animated: Bool) async throws -> BoolsetRootTemplate(rootTemplate: CPTemplate, animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc setRootTemplate(_ rootTemplate: CPTemplate, animated: Bool) async throws -> BoolshowOverlayTemplate(templateToShow: CPTemplate, animated: boolean, completion?: (((arg0: boolean, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc showOverlayTemplate(_ templateToShow: CPTemplate, animated: Bool) async throws -> Boolget carTraitCollection(): Promise<_UIKit_UITraitCollection>Swift declarationvar carTraitCollection: UITraitCollection { get }get delegate(): Promise<(SDKHandle) | null>Swift declarationweak var delegate: (any CPInterfaceControllerDelegate)? { get set }setDelegate(value?: (Implements<CPInterfaceControllerDelegate> | SDKHandle) | null): Promise<void>Swift declarationweak var delegate: (any CPInterfaceControllerDelegate)? { get set }get prefersDarkUserInterfaceStyle(): Promise<boolean>Swift declarationvar prefersDarkUserInterfaceStyle: Bool { get set }setPrefersDarkUserInterfaceStyle(value: boolean): Promise<void>Swift declarationvar prefersDarkUserInterfaceStyle: Bool { get set }get presentedTemplate(): Promise<(CPTemplate) | null>Swift declarationvar presentedTemplate: CPTemplate? { get }get rootTemplate(): Promise<CPTemplate>Swift declarationvar rootTemplate: CPTemplate { get }get templates(): Promise<Array<CPTemplate>>Swift declarationvar templates: [CPTemplate] { get }get topTemplate(): Promise<(CPTemplate) | null>Swift declarationvar topTemplate: CPTemplate? { get }8 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CPInterfaceController.setRootTemplate(_:animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.pushTemplate(_:animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.popTemplate(animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.popToRootTemplate(animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.pop(to:animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.presentTemplate(_:animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.dismissTemplate(animated:)
The iOS SDK compiler rejected this binding: call can throw but is not marked with 'try'
CPInterfaceController.init()
inherited init: clang: 'init' is unavailable