use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(WKInterfaceObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WKInterfaceObject")]
pub struct WKInterfaceInlineMovie;
);
#[cfg(feature = "WKInterfaceObject")]
extern_conformance!(
unsafe impl NSObjectProtocol for WKInterfaceInlineMovie {}
);
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceInlineMovie {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(setMovieURL:))]
#[unsafe(method_family = none)]
pub unsafe fn setMovieURL(&self, url: &NSURL);
#[cfg(feature = "WKInterfaceController")]
#[unsafe(method(setVideoGravity:))]
#[unsafe(method_family = none)]
pub unsafe fn setVideoGravity(&self, video_gravity: WKVideoGravity);
#[unsafe(method(setLoops:))]
#[unsafe(method_family = none)]
pub unsafe fn setLoops(&self, loops: bool);
#[unsafe(method(setAutoplays:))]
#[unsafe(method_family = none)]
pub unsafe fn setAutoplays(&self, autoplays: bool);
#[cfg(feature = "WKImage")]
#[unsafe(method(setPosterImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setPosterImage(&self, poster_image: Option<&WKImage>);
#[unsafe(method(play))]
#[unsafe(method_family = none)]
pub unsafe fn play(&self);
#[unsafe(method(playFromBeginning))]
#[unsafe(method_family = none)]
pub unsafe fn playFromBeginning(&self);
#[unsafe(method(pause))]
#[unsafe(method_family = none)]
pub unsafe fn pause(&self);
);
}
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceInlineMovie {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}