TVApplicationControllerDelegate

Trait TVApplicationControllerDelegate 

Source
pub unsafe trait TVApplicationControllerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn appController_evaluateAppJavaScriptInContext(
        &self,
        app_controller: &TVApplicationController,
        js_context: &JSContext,
    )
       where Self: Sized + Message { ... }
    unsafe fn appController_didFinishLaunchingWithOptions(
        &self,
        app_controller: &TVApplicationController,
        options: Option<&NSDictionary<NSString, AnyObject>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn appController_didFailWithError(
        &self,
        app_controller: &TVApplicationController,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
    unsafe fn appController_didStopWithOptions(
        &self,
        app_controller: &TVApplicationController,
        options: Option<&NSDictionary<NSString, AnyObject>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn playerForAppController(
        &self,
        app_controller: &TVApplicationController,
    ) -> Option<Retained<TVPlayer>>
       where Self: Sized + Message { ... }
}
👎Deprecated: Please use SwiftUI or UIKit
Available on crate feature TVApplicationController only.
Expand description

Provided Methods§

Source

unsafe fn appController_evaluateAppJavaScriptInContext( &self, app_controller: &TVApplicationController, js_context: &JSContext, )
where Self: Sized + Message,

👎Deprecated: Please use SwiftUI or UIKit
Available on crate feature objc2-javascript-core only.

This method lets delegate to add JavaScript classes and objects.

Source

unsafe fn appController_didFinishLaunchingWithOptions( &self, app_controller: &TVApplicationController, options: Option<&NSDictionary<NSString, AnyObject>>, )
where Self: Sized + Message,

👎Deprecated: Please use SwiftUI or UIKit

Tells the delegate that the application did finish launching.

§Safety

options generic should be of the correct type.

Source

unsafe fn appController_didFailWithError( &self, app_controller: &TVApplicationController, error: &NSError, )
where Self: Sized + Message,

👎Deprecated: Please use SwiftUI or UIKit

Tells the delegate that the application failed to load.

Source

unsafe fn appController_didStopWithOptions( &self, app_controller: &TVApplicationController, options: Option<&NSDictionary<NSString, AnyObject>>, )
where Self: Sized + Message,

👎Deprecated: Please use SwiftUI or UIKit

Tells the delegate that the application did stop.

§Safety

options generic should be of the correct type.

Source

unsafe fn playerForAppController( &self, app_controller: &TVApplicationController, ) -> Option<Retained<TVPlayer>>
where Self: Sized + Message,

👎Deprecated: Please use SwiftUI or UIKit
Available on crate feature TVPlayback only.

Asks the delegate for a custom player object for a particular player bridge.

Trait Implementations§

Source§

impl ProtocolType for dyn TVApplicationControllerDelegate

Source§

const NAME: &'static str = "TVApplicationControllerDelegate"

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 TVApplicationControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> TVApplicationControllerDelegate for ProtocolObject<T>

Implementors§