UIApplicationDelegate.AccessibilityPerformMagicTap Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs the most important action of the app. Often, this is toggling the most important state of the app.
[Foundation.Export("accessibilityPerformMagicTap")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AccessibilityPerformMagicTap ();
abstract member AccessibilityPerformMagicTap : unit -> bool
override this.AccessibilityPerformMagicTap : unit -> bool
Returns
By default, returns false
. If overridden, return true
if the action succeeded.
- Attributes
Remarks
If the system-wide "Voice Over" Accessibility setting is on, a two-finger double-tap ("Magic Tap") should perform the most-important behavior of the application (e.g., starting or pausing media playback, answering or hanging up a phone call). Application developers can override this method to provide this functionality.
Application developers should not rely on application users knowing and using the "magic tap" gesture. Applications should always provide a visual UI that provides the same action as the "magic tap."