AVExternalSyncDeviceDelegate

Trait AVExternalSyncDeviceDelegate 

Source
pub unsafe trait AVExternalSyncDeviceDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn externalSyncDeviceStatusDidChange(
        &self,
        device: &AVExternalSyncDevice,
    )
       where Self: Sized + Message { ... }
    unsafe fn externalSyncDevice_failedWithError(
        &self,
        device: &AVExternalSyncDevice,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVExternalSyncDevice only.
Expand description

Defines an interface for delegates of AVCaptureDeviceInput to respond to events that occur when connecting, calibrating, and disconnecting external sync devices.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn externalSyncDeviceStatusDidChange( &self, device: &AVExternalSyncDevice, )
where Self: Sized + Message,

Informs your delegate when the external sync device status has changed.

Source

unsafe fn externalSyncDevice_failedWithError( &self, device: &AVExternalSyncDevice, error: Option<&NSError>, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn AVExternalSyncDeviceDelegate

Source§

const NAME: &'static str = "AVExternalSyncDeviceDelegate"

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 AVExternalSyncDeviceDelegate

Implementations on Foreign Types§

Source§

impl<T> AVExternalSyncDeviceDelegate for ProtocolObject<T>

Implementors§