use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UINavigationController, UIViewController, UIResponder, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
pub struct UIVideoEditorController;
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl NSCoding for UIVideoEditorController {}
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl NSObjectProtocol for UIVideoEditorController {}
);
#[cfg(all(
feature = "UIAppearance",
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl UIAppearanceContainer for UIVideoEditorController {}
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl UIContentContainer for UIVideoEditorController {}
);
#[cfg(all(
feature = "UIFocus",
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl UIFocusEnvironment for UIVideoEditorController {}
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl UIResponderStandardEditActions for UIVideoEditorController {}
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UITraitCollection",
feature = "UIViewController"
))]
extern_conformance!(
unsafe impl UITraitEnvironment for UIVideoEditorController {}
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
impl UIVideoEditorController {
extern_methods!(
#[unsafe(method(canEditVideoAtPath:))]
#[unsafe(method_family = none)]
pub fn canEditVideoAtPath(video_path: &NSString, mtm: MainThreadMarker) -> bool;
#[unsafe(method(delegate))]
#[unsafe(method_family = none)]
pub unsafe fn delegate(
&self,
) -> Option<
Retained<
AnyObject,
>,
>;
#[unsafe(method(setDelegate:))]
#[unsafe(method_family = none)]
pub unsafe fn setDelegate(
&self,
delegate: Option<
&AnyObject,
>,
);
#[unsafe(method(videoPath))]
#[unsafe(method_family = none)]
pub fn videoPath(&self) -> Retained<NSString>;
#[unsafe(method(setVideoPath:))]
#[unsafe(method_family = none)]
pub fn setVideoPath(&self, video_path: &NSString);
#[unsafe(method(videoMaximumDuration))]
#[unsafe(method_family = none)]
pub fn videoMaximumDuration(&self) -> NSTimeInterval;
#[unsafe(method(setVideoMaximumDuration:))]
#[unsafe(method_family = none)]
pub fn setVideoMaximumDuration(&self, video_maximum_duration: NSTimeInterval);
#[cfg(feature = "UIImagePickerController")]
#[unsafe(method(videoQuality))]
#[unsafe(method_family = none)]
pub fn videoQuality(&self) -> UIImagePickerControllerQualityType;
#[cfg(feature = "UIImagePickerController")]
#[unsafe(method(setVideoQuality:))]
#[unsafe(method_family = none)]
pub fn setVideoQuality(&self, video_quality: UIImagePickerControllerQualityType);
);
}
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
impl UIVideoEditorController {
extern_methods!(
#[unsafe(method(initWithNavigationBarClass:toolbarClass:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNavigationBarClass_toolbarClass(
this: Allocated<Self>,
navigation_bar_class: Option<&AnyClass>,
toolbar_class: Option<&AnyClass>,
) -> Retained<Self>;
#[unsafe(method(initWithRootViewController:))]
#[unsafe(method_family = init)]
pub fn initWithRootViewController(
this: Allocated<Self>,
root_view_controller: &UIViewController,
) -> Retained<Self>;
#[unsafe(method(initWithNibName:bundle:))]
#[unsafe(method_family = init)]
pub fn initWithNibName_bundle(
this: Allocated<Self>,
nib_name_or_nil: Option<&NSString>,
nib_bundle_or_nil: Option<&NSBundle>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
a_decoder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
impl UIVideoEditorController {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}
extern_protocol!(
pub unsafe trait UIVideoEditorControllerDelegate:
NSObjectProtocol + MainThreadOnly
{
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
#[optional]
#[unsafe(method(videoEditorController:didSaveEditedVideoToPath:))]
#[unsafe(method_family = none)]
fn videoEditorController_didSaveEditedVideoToPath(
&self,
editor: &UIVideoEditorController,
edited_video_path: &NSString,
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
#[optional]
#[unsafe(method(videoEditorController:didFailWithError:))]
#[unsafe(method_family = none)]
fn videoEditorController_didFailWithError(
&self,
editor: &UIVideoEditorController,
error: &NSError,
);
#[cfg(all(
feature = "UINavigationController",
feature = "UIResponder",
feature = "UIViewController"
))]
#[optional]
#[unsafe(method(videoEditorControllerDidCancel:))]
#[unsafe(method_family = none)]
fn videoEditorControllerDidCancel(&self, editor: &UIVideoEditorController);
}
);