objc2_watch_kit/generated/
WKInterfaceInlineMovie.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/wkinterfaceinlinemovie?language=objc)
12    #[unsafe(super(WKInterfaceObject, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "WKInterfaceObject")]
15    pub struct WKInterfaceInlineMovie;
16);
17
18#[cfg(feature = "WKInterfaceObject")]
19extern_conformance!(
20    unsafe impl NSObjectProtocol for WKInterfaceInlineMovie {}
21);
22
23#[cfg(feature = "WKInterfaceObject")]
24impl WKInterfaceInlineMovie {
25    extern_methods!(
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30        #[unsafe(method(setMovieURL:))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn setMovieURL(&self, url: &NSURL);
33
34        #[cfg(feature = "WKInterfaceController")]
35        #[unsafe(method(setVideoGravity:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn setVideoGravity(&self, video_gravity: WKVideoGravity);
38
39        #[unsafe(method(setLoops:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn setLoops(&self, loops: bool);
42
43        #[unsafe(method(setAutoplays:))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn setAutoplays(&self, autoplays: bool);
46
47        #[cfg(feature = "WKImage")]
48        #[unsafe(method(setPosterImage:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn setPosterImage(&self, poster_image: Option<&WKImage>);
51
52        #[unsafe(method(play))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn play(&self);
55
56        #[unsafe(method(playFromBeginning))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn playFromBeginning(&self);
59
60        #[unsafe(method(pause))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn pause(&self);
63    );
64}
65
66/// Methods declared on superclass `NSObject`.
67#[cfg(feature = "WKInterfaceObject")]
68impl WKInterfaceInlineMovie {
69    extern_methods!(
70        #[unsafe(method(new))]
71        #[unsafe(method_family = new)]
72        pub unsafe fn new() -> Retained<Self>;
73    );
74}