Trait HMCameraStreamControlDelegate

Source
pub unsafe trait HMCameraStreamControlDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn cameraStreamControlDidStartStream(
        &self,
        camera_stream_control: &HMCameraStreamControl,
    )
       where Self: Sized + Message { ... }
    unsafe fn cameraStreamControl_didStopStreamWithError(
        &self,
        camera_stream_control: &HMCameraStreamControl,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature HMCameraStreamControl only.
Expand description

This delegate receives updates on the camera stream.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn cameraStreamControlDidStartStream( &self, camera_stream_control: &HMCameraStreamControl, )
where Self: Sized + Message,

Available on crate feature HMCameraControl only.

Informs the delegate that the stream has started.

Parameter cameraStreamControl: Sender of this message.

Source

unsafe fn cameraStreamControl_didStopStreamWithError( &self, camera_stream_control: &HMCameraStreamControl, error: Option<&NSError>, )
where Self: Sized + Message,

Available on crate feature HMCameraControl only.

Informs the delegate that the stream has stopped.

Parameter cameraStreamControl: Sender of this message.

Parameter error: When stream stops because of an error, ‘error’ will be populated.

Trait Implementations§

Source§

impl ProtocolType for dyn HMCameraStreamControlDelegate

Source§

const NAME: &'static str = "HMCameraStreamControlDelegate"

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 HMCameraStreamControlDelegate

Implementations on Foreign Types§

Source§

impl<T> HMCameraStreamControlDelegate for ProtocolObject<T>

Implementors§