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
// 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"
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())
}
}
/// [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<'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())
}
}
/// [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())
}
}
/// public static final [PLAYSTATE_STOPPED](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_STOPPED)
pub const PLAYSTATE_STOPPED : i32 = 1;
/// 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_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_REWINDING](https://developer.android.com/reference/android/media/RemoteControlClient.html#PLAYSTATE_REWINDING)
pub const PLAYSTATE_REWINDING : i32 = 5;
/// 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_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_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 [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_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_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_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_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 [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;
}
}