SCStreamDelegate

Trait SCStreamDelegate 

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

SCStreamDelegate

SCStreamDelegate is the object that adheres to the SCStream delegate call backs

See also Apple’s documentation

Provided Methods§

Source

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

stream:didStopStreamWithError:

Parameter stream: the SCStream object

Parameter error: the error denoted by the stopping of the stream

notifies the delegate that the stream has stopped and the error associated with it

Source

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

outputVideoEffectDidStartForStream:

Parameter stream: the SCStream object

notifies the delegate that the stream’s overlay video effect has started.

Source

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

stream:outputVideoEffectDidStart:

Parameter stream: the SCStream object

notifies the delegate that the stream’s overlay video effect has stopped.

Source

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

streamDidBecomeActive:

Parameter stream: the SCStream object

notifies the delegate the first time any window that was being shared in the stream is re-opened after all the windows being shared are closed. When all the windows being shared are closed, the client will receive streamDidBecomeInactive:.

Source

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

streamDidBecomeInactive:

Parameter stream: the SCStream object

notifies the delegate that all the windows that are currently being shared are exited. This callback occurs for all content filter types.

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. 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 SCStreamDelegate

Implementations on Foreign Types§

Source§

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

Implementors§