objc2_media_player/generated/
MPRemoteCommandCenter.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct MPRemoteCommandCenter;
13);
14
15extern_conformance!(
16    unsafe impl NSObjectProtocol for MPRemoteCommandCenter {}
17);
18
19impl MPRemoteCommandCenter {
20    extern_methods!(
21        #[cfg(feature = "MPRemoteCommand")]
22        #[unsafe(method(pauseCommand))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn pauseCommand(&self) -> Retained<MPRemoteCommand>;
25
26        #[cfg(feature = "MPRemoteCommand")]
27        #[unsafe(method(playCommand))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn playCommand(&self) -> Retained<MPRemoteCommand>;
30
31        #[cfg(feature = "MPRemoteCommand")]
32        #[unsafe(method(stopCommand))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn stopCommand(&self) -> Retained<MPRemoteCommand>;
35
36        #[cfg(feature = "MPRemoteCommand")]
37        #[unsafe(method(togglePlayPauseCommand))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn togglePlayPauseCommand(&self) -> Retained<MPRemoteCommand>;
40
41        #[cfg(feature = "MPRemoteCommand")]
42        #[unsafe(method(enableLanguageOptionCommand))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn enableLanguageOptionCommand(&self) -> Retained<MPRemoteCommand>;
45
46        #[cfg(feature = "MPRemoteCommand")]
47        #[unsafe(method(disableLanguageOptionCommand))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn disableLanguageOptionCommand(&self) -> Retained<MPRemoteCommand>;
50
51        #[cfg(feature = "MPRemoteCommand")]
52        #[unsafe(method(changePlaybackRateCommand))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn changePlaybackRateCommand(&self) -> Retained<MPChangePlaybackRateCommand>;
55
56        #[cfg(feature = "MPRemoteCommand")]
57        #[unsafe(method(changeRepeatModeCommand))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn changeRepeatModeCommand(&self) -> Retained<MPChangeRepeatModeCommand>;
60
61        #[cfg(feature = "MPRemoteCommand")]
62        #[unsafe(method(changeShuffleModeCommand))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn changeShuffleModeCommand(&self) -> Retained<MPChangeShuffleModeCommand>;
65
66        #[cfg(feature = "MPRemoteCommand")]
67        #[unsafe(method(nextTrackCommand))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn nextTrackCommand(&self) -> Retained<MPRemoteCommand>;
70
71        #[cfg(feature = "MPRemoteCommand")]
72        #[unsafe(method(previousTrackCommand))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn previousTrackCommand(&self) -> Retained<MPRemoteCommand>;
75
76        #[cfg(feature = "MPRemoteCommand")]
77        #[unsafe(method(skipForwardCommand))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn skipForwardCommand(&self) -> Retained<MPSkipIntervalCommand>;
80
81        #[cfg(feature = "MPRemoteCommand")]
82        #[unsafe(method(skipBackwardCommand))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn skipBackwardCommand(&self) -> Retained<MPSkipIntervalCommand>;
85
86        #[cfg(feature = "MPRemoteCommand")]
87        #[unsafe(method(seekForwardCommand))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn seekForwardCommand(&self) -> Retained<MPRemoteCommand>;
90
91        #[cfg(feature = "MPRemoteCommand")]
92        #[unsafe(method(seekBackwardCommand))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn seekBackwardCommand(&self) -> Retained<MPRemoteCommand>;
95
96        #[cfg(feature = "MPRemoteCommand")]
97        #[unsafe(method(changePlaybackPositionCommand))]
98        #[unsafe(method_family = none)]
99        pub unsafe fn changePlaybackPositionCommand(
100            &self,
101        ) -> Retained<MPChangePlaybackPositionCommand>;
102
103        #[cfg(feature = "MPRemoteCommand")]
104        #[unsafe(method(ratingCommand))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn ratingCommand(&self) -> Retained<MPRatingCommand>;
107
108        #[cfg(feature = "MPRemoteCommand")]
109        #[unsafe(method(likeCommand))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn likeCommand(&self) -> Retained<MPFeedbackCommand>;
112
113        #[cfg(feature = "MPRemoteCommand")]
114        #[unsafe(method(dislikeCommand))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn dislikeCommand(&self) -> Retained<MPFeedbackCommand>;
117
118        #[cfg(feature = "MPRemoteCommand")]
119        #[unsafe(method(bookmarkCommand))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn bookmarkCommand(&self) -> Retained<MPFeedbackCommand>;
122
123        #[unsafe(method(sharedCommandCenter))]
124        #[unsafe(method_family = none)]
125        pub unsafe fn sharedCommandCenter() -> Retained<MPRemoteCommandCenter>;
126
127        #[unsafe(method(new))]
128        #[unsafe(method_family = new)]
129        pub unsafe fn new() -> Retained<Self>;
130
131        #[unsafe(method(init))]
132        #[unsafe(method_family = init)]
133        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
134    );
135}