objc2_watch_kit/generated/
WKInterfaceMovie.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/wkinterfacemovie?language=objc)
12    #[unsafe(super(WKInterfaceObject, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "WKInterfaceObject")]
15    pub struct WKInterfaceMovie;
16);
17
18#[cfg(feature = "WKInterfaceObject")]
19extern_conformance!(
20    unsafe impl NSObjectProtocol for WKInterfaceMovie {}
21);
22
23#[cfg(feature = "WKInterfaceObject")]
24impl WKInterfaceMovie {
25    extern_methods!(
26        #[deprecated = "Use AVKit.VideoPlayer instead."]
27        #[unsafe(method(init))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31        #[unsafe(method(setMovieURL:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn setMovieURL(&self, url: &NSURL);
34
35        #[cfg(feature = "WKInterfaceController")]
36        #[unsafe(method(setVideoGravity:))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn setVideoGravity(&self, video_gravity: WKVideoGravity);
39
40        #[unsafe(method(setLoops:))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn setLoops(&self, loops: bool);
43
44        #[cfg(feature = "WKImage")]
45        #[unsafe(method(setPosterImage:))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn setPosterImage(&self, poster_image: Option<&WKImage>);
48    );
49}
50
51/// Methods declared on superclass `NSObject`.
52#[cfg(feature = "WKInterfaceObject")]
53impl WKInterfaceMovie {
54    extern_methods!(
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}