Trait objc2_screen_capture_kit::SCStreamDelegate

source ·
pub unsafe trait SCStreamDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn stream_didStopWithError(&self, stream: &SCStream, error: &NSError)
       where Self: Sized + Message { ... }
    unsafe fn userDidStopStream(&self, stream: &SCStream)
       where Self: Sized + Message { ... }
    unsafe fn outputVideoEffectDidStartForStream(&self, stream: &SCStream)
       where Self: Sized + Message { ... }
    unsafe fn outputVideoEffectDidStopForStream(&self, stream: &SCStream)
       where Self: Sized + Message { ... }
}
Available on crate feature SCStream only.

Provided Methods§

source

unsafe fn stream_didStopWithError(&self, stream: &SCStream, error: &NSError)
where Self: Sized + Message,

source

unsafe fn userDidStopStream(&self, stream: &SCStream)
where Self: Sized + Message,

source

unsafe fn outputVideoEffectDidStartForStream(&self, stream: &SCStream)
where Self: Sized + Message,

source

unsafe fn outputVideoEffectDidStopForStream(&self, stream: &SCStream)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn SCStreamDelegate

source§

const NAME: &'static str = "SCStreamDelegate"

The name of the Objective-C protocol that this type represents.
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 SCStreamDelegate

Implementations on Foreign Types§

source§

impl<T> SCStreamDelegate for ProtocolObject<T>
where T: ?Sized + SCStreamDelegate,

Implementors§