// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-app-RemoteAction"))]
__jni_bindgen! {
/// public final class [RemoteAction](https://developer.android.com/reference/android/app/RemoteAction.html)
///
/// Required feature: "android-app-RemoteAction"
public final class RemoteAction ("android/app/RemoteAction") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
/// [RemoteAction](https://developer.android.com/reference/android/app/RemoteAction.html#RemoteAction(android.graphics.drawable.Icon,%20java.lang.CharSequence,%20java.lang.CharSequence,%20android.app.PendingIntent))
///
/// Required features: "android-app-PendingIntent", "android-graphics-drawable-Icon", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-app-PendingIntent", feature = "android-graphics-drawable-Icon", feature = "java-lang-CharSequence")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::drawable::Icon>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg3: 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::app::RemoteAction>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteAction\0", "<init>\0", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setEnabled](https://developer.android.com/reference/android/app/RemoteAction.html#setEnabled(boolean))
pub fn setEnabled<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "setEnabled", .descriptor == "(Z)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/app/RemoteAction\0", "setEnabled\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isEnabled](https://developer.android.com/reference/android/app/RemoteAction.html#isEnabled())
pub fn isEnabled<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "isEnabled", .descriptor == "()Z"
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/app/RemoteAction\0", "isEnabled\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIcon](https://developer.android.com/reference/android/app/RemoteAction.html#getIcon())
///
/// Required features: "android-graphics-drawable-Icon"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Icon")))]
pub fn getIcon<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::Icon>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "getIcon", .descriptor == "()Landroid/graphics/drawable/Icon;"
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/app/RemoteAction\0", "getIcon\0", "()Landroid/graphics/drawable/Icon;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTitle](https://developer.android.com/reference/android/app/RemoteAction.html#getTitle())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getTitle<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "getTitle", .descriptor == "()Ljava/lang/CharSequence;"
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/app/RemoteAction\0", "getTitle\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getContentDescription](https://developer.android.com/reference/android/app/RemoteAction.html#getContentDescription())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getContentDescription<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "getContentDescription", .descriptor == "()Ljava/lang/CharSequence;"
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/app/RemoteAction\0", "getContentDescription\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getActionIntent](https://developer.android.com/reference/android/app/RemoteAction.html#getActionIntent())
///
/// Required features: "android-app-PendingIntent"
#[cfg(any(feature = "all", all(feature = "android-app-PendingIntent")))]
pub fn getActionIntent<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "getActionIntent", .descriptor == "()Landroid/app/PendingIntent;"
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/app/RemoteAction\0", "getActionIntent\0", "()Landroid/app/PendingIntent;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [clone](https://developer.android.com/reference/android/app/RemoteAction.html#clone())
///
/// Required features: "android-app-RemoteAction"
#[cfg(any(feature = "all", all(feature = "android-app-RemoteAction")))]
pub fn clone<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::RemoteAction>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "clone", .descriptor == "()Landroid/app/RemoteAction;"
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/app/RemoteAction\0", "clone\0", "()Landroid/app/RemoteAction;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [describeContents](https://developer.android.com/reference/android/app/RemoteAction.html#describeContents())
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "describeContents", .descriptor == "()I"
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/app/RemoteAction\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [writeToParcel](https://developer.android.com/reference/android/app/RemoteAction.html#writeToParcel(android.os.Parcel,%20int))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteAction\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dump](https://developer.android.com/reference/android/app/RemoteAction.html#dump(java.lang.String,%20java.io.PrintWriter))
///
/// Required features: "java-io-PrintWriter", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-io-PrintWriter", feature = "java-lang-String")))]
pub fn dump<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::PrintWriter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/RemoteAction", java.flags == PUBLIC, .name == "dump", .descriptor == "(Ljava/lang/String;Ljava/io/PrintWriter;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteAction\0", "dump\0", "(Ljava/lang/String;Ljava/io/PrintWriter;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CREATOR](https://developer.android.com/reference/android/app/RemoteAction.html#CREATOR)
///
/// Required feature: "android-os-Parcelable_Creator"
#[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/app/RemoteAction\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}