icrate/generated/MediaPlayer/
MPRemoteCommandCenter.rs1use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::MediaPlayer::*;
7
8extern_class!(
9 #[derive(Debug, PartialEq, Eq, Hash)]
10 #[cfg(feature = "MediaPlayer_MPRemoteCommandCenter")]
11 pub struct MPRemoteCommandCenter;
12
13 #[cfg(feature = "MediaPlayer_MPRemoteCommandCenter")]
14 unsafe impl ClassType for MPRemoteCommandCenter {
15 type Super = NSObject;
16 type Mutability = InteriorMutable;
17 }
18);
19
20#[cfg(feature = "MediaPlayer_MPRemoteCommandCenter")]
21unsafe impl NSObjectProtocol for MPRemoteCommandCenter {}
22
23extern_methods!(
24 #[cfg(feature = "MediaPlayer_MPRemoteCommandCenter")]
25 unsafe impl MPRemoteCommandCenter {
26 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
27 #[method_id(@__retain_semantics Other pauseCommand)]
28 pub unsafe fn pauseCommand(&self) -> Id<MPRemoteCommand>;
29
30 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
31 #[method_id(@__retain_semantics Other playCommand)]
32 pub unsafe fn playCommand(&self) -> Id<MPRemoteCommand>;
33
34 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
35 #[method_id(@__retain_semantics Other stopCommand)]
36 pub unsafe fn stopCommand(&self) -> Id<MPRemoteCommand>;
37
38 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
39 #[method_id(@__retain_semantics Other togglePlayPauseCommand)]
40 pub unsafe fn togglePlayPauseCommand(&self) -> Id<MPRemoteCommand>;
41
42 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
43 #[method_id(@__retain_semantics Other enableLanguageOptionCommand)]
44 pub unsafe fn enableLanguageOptionCommand(&self) -> Id<MPRemoteCommand>;
45
46 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
47 #[method_id(@__retain_semantics Other disableLanguageOptionCommand)]
48 pub unsafe fn disableLanguageOptionCommand(&self) -> Id<MPRemoteCommand>;
49
50 #[cfg(feature = "MediaPlayer_MPChangePlaybackRateCommand")]
51 #[method_id(@__retain_semantics Other changePlaybackRateCommand)]
52 pub unsafe fn changePlaybackRateCommand(&self) -> Id<MPChangePlaybackRateCommand>;
53
54 #[cfg(feature = "MediaPlayer_MPChangeRepeatModeCommand")]
55 #[method_id(@__retain_semantics Other changeRepeatModeCommand)]
56 pub unsafe fn changeRepeatModeCommand(&self) -> Id<MPChangeRepeatModeCommand>;
57
58 #[cfg(feature = "MediaPlayer_MPChangeShuffleModeCommand")]
59 #[method_id(@__retain_semantics Other changeShuffleModeCommand)]
60 pub unsafe fn changeShuffleModeCommand(&self) -> Id<MPChangeShuffleModeCommand>;
61
62 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
63 #[method_id(@__retain_semantics Other nextTrackCommand)]
64 pub unsafe fn nextTrackCommand(&self) -> Id<MPRemoteCommand>;
65
66 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
67 #[method_id(@__retain_semantics Other previousTrackCommand)]
68 pub unsafe fn previousTrackCommand(&self) -> Id<MPRemoteCommand>;
69
70 #[cfg(feature = "MediaPlayer_MPSkipIntervalCommand")]
71 #[method_id(@__retain_semantics Other skipForwardCommand)]
72 pub unsafe fn skipForwardCommand(&self) -> Id<MPSkipIntervalCommand>;
73
74 #[cfg(feature = "MediaPlayer_MPSkipIntervalCommand")]
75 #[method_id(@__retain_semantics Other skipBackwardCommand)]
76 pub unsafe fn skipBackwardCommand(&self) -> Id<MPSkipIntervalCommand>;
77
78 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
79 #[method_id(@__retain_semantics Other seekForwardCommand)]
80 pub unsafe fn seekForwardCommand(&self) -> Id<MPRemoteCommand>;
81
82 #[cfg(feature = "MediaPlayer_MPRemoteCommand")]
83 #[method_id(@__retain_semantics Other seekBackwardCommand)]
84 pub unsafe fn seekBackwardCommand(&self) -> Id<MPRemoteCommand>;
85
86 #[cfg(feature = "MediaPlayer_MPChangePlaybackPositionCommand")]
87 #[method_id(@__retain_semantics Other changePlaybackPositionCommand)]
88 pub unsafe fn changePlaybackPositionCommand(&self) -> Id<MPChangePlaybackPositionCommand>;
89
90 #[cfg(feature = "MediaPlayer_MPRatingCommand")]
91 #[method_id(@__retain_semantics Other ratingCommand)]
92 pub unsafe fn ratingCommand(&self) -> Id<MPRatingCommand>;
93
94 #[cfg(feature = "MediaPlayer_MPFeedbackCommand")]
95 #[method_id(@__retain_semantics Other likeCommand)]
96 pub unsafe fn likeCommand(&self) -> Id<MPFeedbackCommand>;
97
98 #[cfg(feature = "MediaPlayer_MPFeedbackCommand")]
99 #[method_id(@__retain_semantics Other dislikeCommand)]
100 pub unsafe fn dislikeCommand(&self) -> Id<MPFeedbackCommand>;
101
102 #[cfg(feature = "MediaPlayer_MPFeedbackCommand")]
103 #[method_id(@__retain_semantics Other bookmarkCommand)]
104 pub unsafe fn bookmarkCommand(&self) -> Id<MPFeedbackCommand>;
105
106 #[method_id(@__retain_semantics Other sharedCommandCenter)]
107 pub unsafe fn sharedCommandCenter() -> Id<MPRemoteCommandCenter>;
108
109 #[method_id(@__retain_semantics New new)]
110 pub unsafe fn new() -> Id<Self>;
111
112 #[method_id(@__retain_semantics Init init)]
113 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
114 }
115);