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
15unsafe impl NSObjectProtocol for MPRemoteCommandCenter {}
16
17impl MPRemoteCommandCenter {
18    extern_methods!(
19        #[cfg(feature = "MPRemoteCommand")]
20        #[unsafe(method(pauseCommand))]
21        #[unsafe(method_family = none)]
22        pub unsafe fn pauseCommand(&self) -> Retained<MPRemoteCommand>;
23
24        #[cfg(feature = "MPRemoteCommand")]
25        #[unsafe(method(playCommand))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn playCommand(&self) -> Retained<MPRemoteCommand>;
28
29        #[cfg(feature = "MPRemoteCommand")]
30        #[unsafe(method(stopCommand))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn stopCommand(&self) -> Retained<MPRemoteCommand>;
33
34        #[cfg(feature = "MPRemoteCommand")]
35        #[unsafe(method(togglePlayPauseCommand))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn togglePlayPauseCommand(&self) -> Retained<MPRemoteCommand>;
38
39        #[cfg(feature = "MPRemoteCommand")]
40        #[unsafe(method(enableLanguageOptionCommand))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn enableLanguageOptionCommand(&self) -> Retained<MPRemoteCommand>;
43
44        #[cfg(feature = "MPRemoteCommand")]
45        #[unsafe(method(disableLanguageOptionCommand))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn disableLanguageOptionCommand(&self) -> Retained<MPRemoteCommand>;
48
49        #[cfg(feature = "MPRemoteCommand")]
50        #[unsafe(method(changePlaybackRateCommand))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn changePlaybackRateCommand(&self) -> Retained<MPChangePlaybackRateCommand>;
53
54        #[cfg(feature = "MPRemoteCommand")]
55        #[unsafe(method(changeRepeatModeCommand))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn changeRepeatModeCommand(&self) -> Retained<MPChangeRepeatModeCommand>;
58
59        #[cfg(feature = "MPRemoteCommand")]
60        #[unsafe(method(changeShuffleModeCommand))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn changeShuffleModeCommand(&self) -> Retained<MPChangeShuffleModeCommand>;
63
64        #[cfg(feature = "MPRemoteCommand")]
65        #[unsafe(method(nextTrackCommand))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn nextTrackCommand(&self) -> Retained<MPRemoteCommand>;
68
69        #[cfg(feature = "MPRemoteCommand")]
70        #[unsafe(method(previousTrackCommand))]
71        #[unsafe(method_family = none)]
72        pub unsafe fn previousTrackCommand(&self) -> Retained<MPRemoteCommand>;
73
74        #[cfg(feature = "MPRemoteCommand")]
75        #[unsafe(method(skipForwardCommand))]
76        #[unsafe(method_family = none)]
77        pub unsafe fn skipForwardCommand(&self) -> Retained<MPSkipIntervalCommand>;
78
79        #[cfg(feature = "MPRemoteCommand")]
80        #[unsafe(method(skipBackwardCommand))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn skipBackwardCommand(&self) -> Retained<MPSkipIntervalCommand>;
83
84        #[cfg(feature = "MPRemoteCommand")]
85        #[unsafe(method(seekForwardCommand))]
86        #[unsafe(method_family = none)]
87        pub unsafe fn seekForwardCommand(&self) -> Retained<MPRemoteCommand>;
88
89        #[cfg(feature = "MPRemoteCommand")]
90        #[unsafe(method(seekBackwardCommand))]
91        #[unsafe(method_family = none)]
92        pub unsafe fn seekBackwardCommand(&self) -> Retained<MPRemoteCommand>;
93
94        #[cfg(feature = "MPRemoteCommand")]
95        #[unsafe(method(changePlaybackPositionCommand))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn changePlaybackPositionCommand(
98            &self,
99        ) -> Retained<MPChangePlaybackPositionCommand>;
100
101        #[cfg(feature = "MPRemoteCommand")]
102        #[unsafe(method(ratingCommand))]
103        #[unsafe(method_family = none)]
104        pub unsafe fn ratingCommand(&self) -> Retained<MPRatingCommand>;
105
106        #[cfg(feature = "MPRemoteCommand")]
107        #[unsafe(method(likeCommand))]
108        #[unsafe(method_family = none)]
109        pub unsafe fn likeCommand(&self) -> Retained<MPFeedbackCommand>;
110
111        #[cfg(feature = "MPRemoteCommand")]
112        #[unsafe(method(dislikeCommand))]
113        #[unsafe(method_family = none)]
114        pub unsafe fn dislikeCommand(&self) -> Retained<MPFeedbackCommand>;
115
116        #[cfg(feature = "MPRemoteCommand")]
117        #[unsafe(method(bookmarkCommand))]
118        #[unsafe(method_family = none)]
119        pub unsafe fn bookmarkCommand(&self) -> Retained<MPFeedbackCommand>;
120
121        #[unsafe(method(sharedCommandCenter))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn sharedCommandCenter() -> Retained<MPRemoteCommandCenter>;
124
125        #[unsafe(method(new))]
126        #[unsafe(method_family = new)]
127        pub unsafe fn new() -> Retained<Self>;
128
129        #[unsafe(method(init))]
130        #[unsafe(method_family = init)]
131        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
132    );
133}