beginUndoGrouping
TypeScriptbeginUndoGrouping(): Promise<void>Swift declarationfunc beginUndoGrouping()class · iOS 3.0+ · SDK 27.1
@MainActor class UndoManagerbeginUndoGrouping(): Promise<void>Swift declarationfunc beginUndoGrouping()disableUndoRegistration(): Promise<void>Swift declarationfunc disableUndoRegistration()enableUndoRegistration(): Promise<void>Swift declarationfunc enableUndoRegistration()endUndoGrouping(): Promise<void>Swift declarationfunc endUndoGrouping()static init(): Promise<UndoManager>Swift declarationinit()prepare(target: unknown): Promise<unknown>Swift declarationfunc prepare(withInvocationTarget target: Any) -> Anyredo(): Promise<void>Swift declarationfunc redo()redoActionUserInfoValue(key: UndoManager_UserInfoKey): Promise<(unknown) | null>Swift declarationfunc redoActionUserInfoValue(forKey key: UndoManager.UserInfoKey) -> Any?redoMenuTitle(actionName: string): Promise<string>Swift declarationfunc redoMenuTitle(forUndoActionName actionName: String) -> StringremoveAllActions(): Promise<void>Swift declarationfunc removeAllActions()removeAllActionsWithTarget(target: unknown): Promise<void>Swift declarationfunc removeAllActions(withTarget target: Any)setActionIsDiscardable(discardable: boolean): Promise<void>Swift declarationfunc setActionIsDiscardable(_ discardable: Bool)setActionName(actionName: string): Promise<void>Swift declarationfunc setActionName(_ actionName: String)setActionUserInfoValue(info: (unknown) | null, key: UndoManager_UserInfoKey): Promise<void>Swift declarationfunc setActionUserInfoValue(_ info: Any?, forKey key: UndoManager.UserInfoKey)undo(): Promise<void>Swift declarationfunc undo()undoActionUserInfoValue(key: UndoManager_UserInfoKey): Promise<(unknown) | null>Swift declarationfunc undoActionUserInfoValue(forKey key: UndoManager.UserInfoKey) -> Any?undoMenuTitle(actionName: string): Promise<string>Swift declarationfunc undoMenuTitle(forUndoActionName actionName: String) -> StringundoNestedGroup(): Promise<void>Swift declarationfunc undoNestedGroup()get canRedo(): Promise<boolean>Swift declarationvar canRedo: Bool { get }get canUndo(): Promise<boolean>Swift declarationvar canUndo: Bool { get }get groupingLevel(): Promise<number>Swift declarationvar groupingLevel: Int { get }get groupsByEvent(): Promise<boolean>Swift declarationvar groupsByEvent: Bool { get set }setGroupsByEvent(value: boolean): Promise<void>Swift declarationvar groupsByEvent: Bool { get set }get levelsOfUndo(): Promise<number>Swift declarationvar levelsOfUndo: Int { get set }setLevelsOfUndo(value: number): Promise<void>Swift declarationvar levelsOfUndo: Int { get set }get redoActionIsDiscardable(): Promise<boolean>Swift declarationvar redoActionIsDiscardable: Bool { get }get redoActionName(): Promise<string>Swift declarationvar redoActionName: String { get }get redoCount(): Promise<number>Swift declarationvar redoCount: Int { get }get redoMenuItemTitle(): Promise<string>Swift declarationvar redoMenuItemTitle: String { get }get isRedoing(): Promise<boolean>Swift declarationvar isRedoing: Bool { get }get runLoopModes(): Promise<Array<RunLoop_Mode>>Swift declarationvar runLoopModes: [RunLoop.Mode] { get set }setRunLoopModes(value: Array<RunLoop_Mode>): Promise<void>Swift declarationvar runLoopModes: [RunLoop.Mode] { get set }get undoActionIsDiscardable(): Promise<boolean>Swift declarationvar undoActionIsDiscardable: Bool { get }get undoActionName(): Promise<string>Swift declarationvar undoActionName: String { get }get undoCount(): Promise<number>Swift declarationvar undoCount: Int { get }get undoMenuItemTitle(): Promise<string>Swift declarationvar undoMenuItemTitle: String { get }get isUndoRegistrationEnabled(): Promise<boolean>Swift declarationvar isUndoRegistrationEnabled: Bool { get }get isUndoing(): Promise<boolean>Swift declarationvar isUndoing: Bool { get }registerUndo(target: SDKHandle, handler: ((arg0: SDKHandle) => void)): Promise<void>Swift declaration@MainActor @preconcurrency func registerUndo<TargetType>(withTarget target: TargetType, handler: @escaping @MainActor (TargetType) -> Void) where TargetType : AnyObjectRegisters the specified closure to implement a single undo operation that the target receives. To avoid retain cycles with the target, operate on the closure parameter rather than on variables in an outer scope that reference the same target. - Parameters: - target: The target of the undo operation. The undo manager maintains an unowned reference to the target to prevent retain cycles. - handler: A closure to execute when an operation is undone. The closure takes a single argument, the target of the undo operation.
setActionName72256(actionNameResource?: (LocalizedStringResource) | null): Promise<void>Swift declaration@MainActor @preconcurrency final func setActionName(_ actionNameResource: LocalizedStringResource?)Sets the name of the action associated with the Undo or Redo command using a localized string resource. This version of `setActionName(_:)` takes a ``LocalizedStringResource``. When using this version, ``undoActionName``, ``redoActionName``, ``undoMenuItemTitle``, and ``redoMenuItemTitle`` interpret the provided resource using the current locale. The undo manager parses the parameter as Markdown using ``AttributedString/init(localized:)`` in order to support inflection. If `actionNameResource` is `nil`, the undo manager removes the action name currently associated with the menu command. - Parameter actionNameResource: The name of the action, as a ``LocalizedStringResource``. Pass in `nil` to reset the action name currently associated with the menu command.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UndoManager.registerUndo(withTarget:selector:object:)
Objective-C selectors cannot cross the bridge.