Trait AVCaptureSessionControlsDelegate

Source
pub unsafe trait AVCaptureSessionControlsDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn sessionControlsDidBecomeActive(&self, session: &AVCaptureSession)
       where Self: Sized + Message { ... }
    unsafe fn sessionControlsWillEnterFullscreenAppearance(
        &self,
        session: &AVCaptureSession,
    )
       where Self: Sized + Message { ... }
    unsafe fn sessionControlsWillExitFullscreenAppearance(
        &self,
        session: &AVCaptureSession,
    )
       where Self: Sized + Message { ... }
    unsafe fn sessionControlsDidBecomeInactive(
        &self,
        session: &AVCaptureSession,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVCaptureSession only.
Expand description

Defines an interface for delegates of AVCaptureSession to receive events about the session’s controls.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn sessionControlsDidBecomeActive(&self, session: &AVCaptureSession)
where Self: Sized + Message,

Called when the controls of an AVCaptureSession instance become active and are available for interaction.

Parameter session: The AVCaptureSession instance whose controls are active.

Delegates receive this message when the controls of an AVCaptureSession instance become active and are available for interaction.

Source

unsafe fn sessionControlsWillEnterFullscreenAppearance( &self, session: &AVCaptureSession, )
where Self: Sized + Message,

Called when the controls of an AVCaptureSession instance will enter a fullscreen appearance.

Parameter session: The AVCaptureSession instance whose controls will enter a fullscreen appearance.

When the controls enter a fullscreen appearance, applications are encouraged to hide portions of their user interface including zoom or exposure sliders and shutter buttons. Few on-screen elements should be visible so users can focus on the controls they are interacting with and view the camera preview unobstructed.

Source

unsafe fn sessionControlsWillExitFullscreenAppearance( &self, session: &AVCaptureSession, )
where Self: Sized + Message,

Called when the controls of an AVCaptureSession instance will exit a fullscreen appearance.

Parameter session: The AVCaptureSession instance whose controls will exit a fullscreen appearance.

Delegates receive this message when the controls of an AVCaptureSession instance should resume showing portions of their user interface that were hidden in response to receiving -sessionControlsWillEnterFullscreenAppearance:. This message is sent before sessionControlsDidBecomeInactive:.

Source

unsafe fn sessionControlsDidBecomeInactive(&self, session: &AVCaptureSession)
where Self: Sized + Message,

Called when the controls of an AVCaptureSession instance become inactive and are no longer available for interaction.

Parameter session: The AVCaptureSession instance whose controls are inactive.

Delegates receive this message when the controls of an AVCaptureSession instance become inactive and are no longer available for interaction.

Trait Implementations§

Source§

impl ProtocolType for dyn AVCaptureSessionControlsDelegate

Source§

const NAME: &'static str = "AVCaptureSessionControlsDelegate"

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 AVCaptureSessionControlsDelegate

Implementations on Foreign Types§

Source§

impl<T> AVCaptureSessionControlsDelegate for ProtocolObject<T>

Implementors§