Struct apple_bundle::info_plist::app_services::PointerInteractions [−][src]
Expand description
Pointer Interactions
Fields
application_supports_indirect_input_events: Option<bool>A Boolean value indicating that the app generally supports indirect input mechanisms.
If this key is not present or returns NO:
- When the user clicks an indirect pointing device, UIKit generates a UITouch of type UITouch.TouchType.direct.
- When pinching or rotating using an indirect touch surface, UIKit creates touches a fixed distance apart that simulate the gesture on the indirect touch surface.
- Because these are normal UITouch events, they may incidentally activate other gesture recognizers
If the key is present and returns YES:
- When the user clicks an indirect pointing device, UIKit generates a UITouch of type UITouch.TouchType.indirectPointer.
- When pinching or rotating using an indirect touch surface, UIKit drives UIPinchGestureRecognizer and UIRotationGestureRecognizer with an event of type UIEvent.EventType.transform.
- Currently, only certain prepackaged gestures in UIKit, like UIPinchGestureRecognizer and UIRotationGestureRecognizer, are capable of handling this event. Other gestures may be added to this list in future releases.
- Gestures that may have worked previously with the simulated touches no longer work.
- Be careful with certain UIGestureRecognizer APIs when gestures are driven by events of type UIEvent.EventType.scroll or UIEvent.EventType.transform.numberOfTouches returns 0, andlocation(ofTouch:in:) raises an exception because there are no touches driving these gestures with those events.
For the case when exceptions might be raised, use either shouldReceive(:) or the delegate call of gestureRecognizer(:shouldReceive:) to determine that gesture recognizers are acting on a non-touch-based event.
Important
UIApplicationSupportsIndirectInputEvents is a compatibility affordance to ease the adoption of indirect input for a UIKit application. In a future release, this new behavior will become the default and this key will no longer be consulted.
Availability
- iOS 13.4+
Framework
- UIKit
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PointerInteractionsimpl Send for PointerInteractionsimpl Sync for PointerInteractionsimpl Unpin for PointerInteractionsimpl UnwindSafe for PointerInteractionsBlanket Implementations
Mutably borrows from an owned value. Read more