CHHapticParameterAttributes

Trait CHHapticParameterAttributes 

Source
pub unsafe trait CHHapticParameterAttributes: NSObjectProtocol {
    // Provided methods
    unsafe fn minValue(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn maxValue(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn defaultValue(&self) -> c_float
       where Self: Sized + Message { ... }
}
Available on crate feature CHHapticDeviceCapability only.
Expand description

A protocol for querying mininum, maximum, and default values for a CHHapticEventParameter or CHHapticDynamicParameter.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn minValue(&self) -> c_float
where Self: Sized + Message,

The minimum value for the parameter.

Source

unsafe fn maxValue(&self) -> c_float
where Self: Sized + Message,

The maximum value for the parameter.

Source

unsafe fn defaultValue(&self) -> c_float
where Self: Sized + Message,

The default value for the parameter.

Trait Implementations§

Source§

impl ProtocolType for dyn CHHapticParameterAttributes

Source§

const NAME: &'static str = "CHHapticParameterAttributes"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CHHapticParameterAttributes

Implementations on Foreign Types§

Source§

impl<T> CHHapticParameterAttributes for ProtocolObject<T>

Implementors§