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§
Sourceunsafe fn appController_evaluateAppJavaScriptInContext(
&self,
app_controller: &TVApplicationController,
js_context: &JSContext,
)
👎Deprecated: Please use SwiftUI or UIKitAvailable on crate feature objc2-javascript-core only.
unsafe fn appController_evaluateAppJavaScriptInContext( &self, app_controller: &TVApplicationController, js_context: &JSContext, )
objc2-javascript-core only.This method lets delegate to add JavaScript classes and objects.
Sourceunsafe fn appController_didFinishLaunchingWithOptions(
&self,
app_controller: &TVApplicationController,
options: Option<&NSDictionary<NSString, AnyObject>>,
)
👎Deprecated: Please use SwiftUI or UIKit
unsafe fn appController_didFinishLaunchingWithOptions( &self, app_controller: &TVApplicationController, options: Option<&NSDictionary<NSString, AnyObject>>, )
Tells the delegate that the application did finish launching.
§Safety
options generic should be of the correct type.
Sourceunsafe fn appController_didFailWithError(
&self,
app_controller: &TVApplicationController,
error: &NSError,
)
👎Deprecated: Please use SwiftUI or UIKit
unsafe fn appController_didFailWithError( &self, app_controller: &TVApplicationController, error: &NSError, )
Tells the delegate that the application failed to load.
Sourceunsafe fn appController_didStopWithOptions(
&self,
app_controller: &TVApplicationController,
options: Option<&NSDictionary<NSString, AnyObject>>,
)
👎Deprecated: Please use SwiftUI or UIKit
unsafe fn appController_didStopWithOptions( &self, app_controller: &TVApplicationController, options: Option<&NSDictionary<NSString, AnyObject>>, )
Tells the delegate that the application did stop.
§Safety
options generic should be of the correct type.
Sourceunsafe fn playerForAppController(
&self,
app_controller: &TVApplicationController,
) -> Option<Retained<TVPlayer>>
👎Deprecated: Please use SwiftUI or UIKitAvailable on crate feature TVPlayback only.
unsafe fn playerForAppController( &self, app_controller: &TVApplicationController, ) -> Option<Retained<TVPlayer>>
TVPlayback only.Asks the delegate for a custom player object for a particular player bridge.