Struct apple_bundle::info_plist::app_services::PointerInteractions[][src]

pub struct PointerInteractions {
    pub application_supports_indirect_input_events: Option<bool>,
}
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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.