1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-media-RemoteControlClient"))]
__jni_bindgen! {
/// public class [RemoteControlClient](https://developer.android.com/reference/android/media/RemoteControlClient.html)
///
/// Required feature: "android-media-RemoteControlClient"
#[deprecated] public class RemoteControlClient ("android/media/RemoteControlClient") extends crate::java::lang::Object {
/// [RemoteControlClient](https://developer.android.com/reference/android/media/RemoteControlClient.html#RemoteControlClient(android.app.PendingIntent))
///
/// Required features: "android-app-PendingIntent"
#[cfg(any(feature = "all", all(feature = "android-app-PendingIntent")))]
pub fn new_PendingIntent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::PendingIntent>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::RemoteControlClient>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/app/PendingIntent;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "<init>\0", "(Landroid/app/PendingIntent;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [RemoteControlClient](https://developer.android.com/reference/android/media/RemoteControlClient.html#RemoteControlClient(android.app.PendingIntent,%20android.os.Looper))
///
/// Required features: "android-app-PendingIntent", "android-os-Looper"
#[cfg(any(feature = "all", all(feature = "android-app-PendingIntent", feature = "android-os-Looper")))]
pub fn new_PendingIntent_Looper<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::PendingIntent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Looper>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::RemoteControlClient>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/app/PendingIntent;Landroid/os/Looper;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "<init>\0", "(Landroid/app/PendingIntent;Landroid/os/Looper;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getMediaSession](https://developer.android.com/reference/android/media/RemoteControlClient.html#getMediaSession())
///
/// Required features: "android-media-session-MediaSession"
#[cfg(any(feature = "all", all(feature = "android-media-session-MediaSession")))]
pub fn getMediaSession<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::session::MediaSession>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "getMediaSession", .descriptor == "()Landroid/media/session/MediaSession;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "getMediaSession\0", "()Landroid/media/session/MediaSession;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [editMetadata](https://developer.android.com/reference/android/media/RemoteControlClient.html#editMetadata(boolean))
///
/// Required features: "android-media-RemoteControlClient_MetadataEditor"
#[cfg(any(feature = "all", all(feature = "android-media-RemoteControlClient_MetadataEditor")))]
pub fn editMetadata<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::RemoteControlClient_MetadataEditor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "editMetadata", .descriptor == "(Z)Landroid/media/RemoteControlClient$MetadataEditor;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "editMetadata\0", "(Z)Landroid/media/RemoteControlClient$MetadataEditor;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setPlaybackState](https://developer.android.com/reference/android/media/RemoteControlClient.html#setPlaybackState(int))
pub fn setPlaybackState_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setPlaybackState", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setPlaybackState\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setPlaybackState](https://developer.android.com/reference/android/media/RemoteControlClient.html#setPlaybackState(int,%20long,%20float))
pub fn setPlaybackState_int_long_float<'env>(&'env self, arg0: i32, arg1: i64, arg2: f32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setPlaybackState", .descriptor == "(IJF)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setPlaybackState\0", "(IJF)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTransportControlFlags](https://developer.android.com/reference/android/media/RemoteControlClient.html#setTransportControlFlags(int))
pub fn setTransportControlFlags<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setTransportControlFlags", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setTransportControlFlags\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setMetadataUpdateListener](https://developer.android.com/reference/android/media/RemoteControlClient.html#setMetadataUpdateListener(android.media.RemoteControlClient.OnMetadataUpdateListener))
///
/// Required features: "android-media-RemoteControlClient_OnMetadataUpdateListener"
#[cfg(any(feature = "all", all(feature = "android-media-RemoteControlClient_OnMetadataUpdateListener")))]
pub fn setMetadataUpdateListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::RemoteControlClient_OnMetadataUpdateListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setMetadataUpdateListener", .descriptor == "(Landroid/media/RemoteControlClient$OnMetadataUpdateListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setMetadataUpdateListener\0", "(Landroid/media/RemoteControlClient$OnMetadataUpdateListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setPlaybackPositionUpdateListener](https://developer.android.com/reference/android/media/RemoteControlClient.html#setPlaybackPositionUpdateListener(android.media.RemoteControlClient.OnPlaybackPositionUpdateListener))
///
/// Required features: "android-media-RemoteControlClient_OnPlaybackPositionUpdateListener"
#[cfg(any(feature = "all", all(feature = "android-media-RemoteControlClient_OnPlaybackPositionUpdateListener")))]
pub fn setPlaybackPositionUpdateListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::RemoteControlClient_OnPlaybackPositionUpdateListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setPlaybackPositionUpdateListener", .descriptor == "(Landroid/media/RemoteControlClient$OnPlaybackPositionUpdateListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setPlaybackPositionUpdateListener\0", "(Landroid/media/RemoteControlClient$OnPlaybackPositionUpdateListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnGetPlaybackPositionListener](https://developer.android.com/reference/android/media/RemoteControlClient.html#setOnGetPlaybackPositionListener(android.media.RemoteControlClient.OnGetPlaybackPositionListener))
///
/// Required features: "android-media-RemoteControlClient_OnGetPlaybackPositionListener"
#[cfg(any(feature = "all", all(feature = "android-media-RemoteControlClient_OnGetPlaybackPositionListener")))]
pub fn setOnGetPlaybackPositionListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::RemoteControlClient_OnGetPlaybackPositionListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/RemoteControlClient", java.flags == PUBLIC, .name == "setOnGetPlaybackPositionListener", .descriptor == "(Landroid/media/RemoteControlClient$OnGetPlaybackPositionListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/RemoteControlClient\0", "setOnGetPlaybackPositionListener\0", "(Landroid/media/RemoteControlClient$OnGetPlaybackPositionListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [FLAG_KEY_MEDIA_FAST_FORWARD](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_FAST_FORWARD)
pub const FLAG_KEY_MEDIA_FAST_FORWARD : i32 = 64;
/// public static final [FLAG_KEY_MEDIA_NEXT](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_NEXT)
pub const FLAG_KEY_MEDIA_NEXT : i32 = 128;
/// public static final [FLAG_KEY_MEDIA_PAUSE](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_PAUSE)
pub const FLAG_KEY_MEDIA_PAUSE : i32 = 16;
/// public static final [FLAG_KEY_MEDIA_PLAY](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_PLAY)
pub const FLAG_KEY_MEDIA_PLAY : i32 = 4;
/// public static final [FLAG_KEY_MEDIA_PLAY_PAUSE](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_PLAY_PAUSE)
pub const FLAG_KEY_MEDIA_PLAY_PAUSE : i32 = 8;
/// public static final [FLAG_KEY_MEDIA_POSITION_UPDATE](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_POSITION_UPDATE)
pub const FLAG_KEY_MEDIA_POSITION_UPDATE : i32 = 256;
/// public static final [FLAG_KEY_MEDIA_PREVIOUS](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_PREVIOUS)
pub const FLAG_KEY_MEDIA_PREVIOUS : i32 = 1;
/// public static final [FLAG_KEY_MEDIA_RATING](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_RATING)
pub const FLAG_KEY_MEDIA_RATING : i32 = 512;
/// public static final [FLAG_KEY_MEDIA_REWIND](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_REWIND)
pub const FLAG_KEY_MEDIA_REWIND : i32 = 2;
/// public static final [FLAG_KEY_MEDIA_STOP](https://developer.android.com/reference/android/media/RemoteControlClient.html#FLAG_KEY_MEDIA_STOP)
pub const FLAG_KEY_MEDIA_STOP : i32 = 32;
/// public static final [PLAYSTATE_BUFFERING](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_BUFFERING)
pub const PLAYSTATE_BUFFERING : i32 = 8;
/// public static final [PLAYSTATE_ERROR](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_ERROR)
pub const PLAYSTATE_ERROR : i32 = 9;
/// public static final [PLAYSTATE_FAST_FORWARDING](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_FAST_FORWARDING)
pub const PLAYSTATE_FAST_FORWARDING : i32 = 4;
/// public static final [PLAYSTATE_PAUSED](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_PAUSED)
pub const PLAYSTATE_PAUSED : i32 = 2;
/// public static final [PLAYSTATE_PLAYING](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_PLAYING)
pub const PLAYSTATE_PLAYING : i32 = 3;
/// public static final [PLAYSTATE_REWINDING](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_REWINDING)
pub const PLAYSTATE_REWINDING : i32 = 5;
/// public static final [PLAYSTATE_SKIPPING_BACKWARDS](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_SKIPPING_BACKWARDS)
pub const PLAYSTATE_SKIPPING_BACKWARDS : i32 = 7;
/// public static final [PLAYSTATE_SKIPPING_FORWARDS](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_SKIPPING_FORWARDS)
pub const PLAYSTATE_SKIPPING_FORWARDS : i32 = 6;
/// public static final [PLAYSTATE_STOPPED](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_STOPPED)
pub const PLAYSTATE_STOPPED : i32 = 1;
}
}