SCStreamOutput

Trait SCStreamOutput 

Source
pub unsafe trait SCStreamOutput: NSObjectProtocol {
    // Provided method
    unsafe fn stream_didOutputSampleBuffer_ofType(
        &self,
        stream: &SCStream,
        sample_buffer: &CMSampleBuffer,
        type: SCStreamOutputType,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature SCStream only.
Expand description

Provided Methods§

Source

unsafe fn stream_didOutputSampleBuffer_ofType( &self, stream: &SCStream, sample_buffer: &CMSampleBuffer, type: SCStreamOutputType, )
where Self: Sized + Message,

Available on crate feature objc2-core-media only.

stream:didOutputSampleBuffer:ofType:

Parameter sampleBuffer: the sample buffer

Parameter type: the sample buffer type

protocol method for passing back screen sample buffers

Trait Implementations§

Source§

impl ProtocolType for dyn SCStreamOutput

Source§

const NAME: &'static str = "SCStreamOutput"

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 SCStreamOutput

Implementations on Foreign Types§

Source§

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

Implementors§