#[cfg(any(feature = "all", feature = "android-app-Notification"))]
__jni_bindgen! {
public class Notification ("android/app/Notification") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::Notification>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Notification\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
#[deprecated] pub fn new_int_CharSequence_long<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg2: i64) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::Notification>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Notification\0", "<init>\0", "(ILjava/lang/CharSequence;J)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn new_Parcel<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::Notification>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Notification\0", "<init>\0", "(Landroid/os/Parcel;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getGroup<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/Notification\0", "getGroup\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getSortKey<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/Notification\0", "getSortKey\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-app-Notification")))]
pub fn clone<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Notification>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/Notification\0", "clone\0", "()Landroid/app/Notification;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/Notification\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[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>> {
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/Notification\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/Notification\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Icon")))]
pub fn getSmallIcon<'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>> {
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/Notification\0", "getSmallIcon\0", "()Landroid/graphics/drawable/Icon;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Icon")))]
pub fn getLargeIcon<'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>> {
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/Notification\0", "getLargeIcon\0", "()Landroid/graphics/drawable/Icon;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", feature = "android-media-AudioAttributes"))]
pub fn AUDIO_ATTRIBUTES_DEFAULT<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::AudioAttributes>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/app/Notification\0", "AUDIO_ATTRIBUTES_DEFAULT\0", "Landroid/media/AudioAttributes;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
pub const CATEGORY_ALARM : &'static str = "alarm";
pub const CATEGORY_CALL : &'static str = "call";
pub const CATEGORY_EMAIL : &'static str = "email";
pub const CATEGORY_ERROR : &'static str = "err";
pub const CATEGORY_EVENT : &'static str = "event";
pub const CATEGORY_MESSAGE : &'static str = "msg";
pub const CATEGORY_PROGRESS : &'static str = "progress";
pub const CATEGORY_PROMO : &'static str = "promo";
pub const CATEGORY_RECOMMENDATION : &'static str = "recommendation";
pub const CATEGORY_REMINDER : &'static str = "reminder";
pub const CATEGORY_SERVICE : &'static str = "service";
pub const CATEGORY_SOCIAL : &'static str = "social";
pub const CATEGORY_STATUS : &'static str = "status";
pub const CATEGORY_SYSTEM : &'static str = "sys";
pub const CATEGORY_TRANSPORT : &'static str = "transport";
pub const COLOR_DEFAULT : i32 = 0;
#[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/Notification\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
pub const DEFAULT_ALL : i32 = -1;
pub const DEFAULT_LIGHTS : i32 = 4;
pub const DEFAULT_SOUND : i32 = 1;
pub const DEFAULT_VIBRATE : i32 = 2;
pub const EXTRA_BACKGROUND_IMAGE_URI : &'static str = "android.backgroundImageUri";
pub const EXTRA_BIG_TEXT : &'static str = "android.bigText";
pub const EXTRA_COMPACT_ACTIONS : &'static str = "android.compactActions";
pub const EXTRA_INFO_TEXT : &'static str = "android.infoText";
pub const EXTRA_LARGE_ICON : &'static str = "android.largeIcon";
pub const EXTRA_LARGE_ICON_BIG : &'static str = "android.largeIcon.big";
pub const EXTRA_MEDIA_SESSION : &'static str = "android.mediaSession";
pub const EXTRA_PEOPLE : &'static str = "android.people";
pub const EXTRA_PICTURE : &'static str = "android.picture";
pub const EXTRA_PROGRESS : &'static str = "android.progress";
pub const EXTRA_PROGRESS_INDETERMINATE : &'static str = "android.progressIndeterminate";
pub const EXTRA_PROGRESS_MAX : &'static str = "android.progressMax";
pub const EXTRA_SHOW_CHRONOMETER : &'static str = "android.showChronometer";
pub const EXTRA_SHOW_WHEN : &'static str = "android.showWhen";
pub const EXTRA_SMALL_ICON : &'static str = "android.icon";
pub const EXTRA_SUB_TEXT : &'static str = "android.subText";
pub const EXTRA_SUMMARY_TEXT : &'static str = "android.summaryText";
pub const EXTRA_TEMPLATE : &'static str = "android.template";
pub const EXTRA_TEXT : &'static str = "android.text";
pub const EXTRA_TEXT_LINES : &'static str = "android.textLines";
pub const EXTRA_TITLE : &'static str = "android.title";
pub const EXTRA_TITLE_BIG : &'static str = "android.title.big";
pub const FLAG_AUTO_CANCEL : i32 = 16;
pub const FLAG_FOREGROUND_SERVICE : i32 = 64;
pub const FLAG_GROUP_SUMMARY : i32 = 512;
#[deprecated] pub const FLAG_HIGH_PRIORITY : i32 = 128;
pub const FLAG_INSISTENT : i32 = 4;
pub const FLAG_LOCAL_ONLY : i32 = 256;
pub const FLAG_NO_CLEAR : i32 = 32;
pub const FLAG_ONGOING_EVENT : i32 = 2;
pub const FLAG_ONLY_ALERT_ONCE : i32 = 8;
pub const FLAG_SHOW_LIGHTS : i32 = 1;
pub const INTENT_CATEGORY_NOTIFICATION_PREFERENCES : &'static str = "android.intent.category.NOTIFICATION_PREFERENCES";
pub const PRIORITY_DEFAULT : i32 = 0;
pub const PRIORITY_HIGH : i32 = 1;
pub const PRIORITY_LOW : i32 = -1;
pub const PRIORITY_MAX : i32 = 2;
pub const PRIORITY_MIN : i32 = -2;
#[deprecated] pub const STREAM_DEFAULT : i32 = -1;
pub const VISIBILITY_PRIVATE : i32 = 0;
pub const VISIBILITY_PUBLIC : i32 = 1;
pub const VISIBILITY_SECRET : i32 = -1;
#[cfg(any(feature = "all", feature = "android-app-Notification_Action"))]
pub fn actions<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::app::Notification_Action, crate::java::lang::Throwable>>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "actions\0", "[Landroid/app/Notification$Action;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-app-Notification_Action"))]
pub fn set_actions<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::android::app::Notification_Action, crate::java::lang::Throwable>>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "actions\0", "[Landroid/app/Notification$Action;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-media-AudioAttributes"))]
pub fn audioAttributes<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::AudioAttributes>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "audioAttributes\0", "Landroid/media/AudioAttributes;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-media-AudioAttributes"))]
pub fn set_audioAttributes<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::media::AudioAttributes>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "audioAttributes\0", "Landroid/media/AudioAttributes;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[deprecated] pub fn audioStreamType<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "audioStreamType\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
#[deprecated] pub fn set_audioStreamType<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "audioStreamType\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn bigContentView<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::RemoteViews>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "bigContentView\0", "Landroid/widget/RemoteViews;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn set_bigContentView<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::widget::RemoteViews>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "bigContentView\0", "Landroid/widget/RemoteViews;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn category<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "category\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_category<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "category\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn color<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "color\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_color<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "color\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn contentIntent<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "contentIntent\0", "Landroid/app/PendingIntent;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn set_contentIntent<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::app::PendingIntent>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "contentIntent\0", "Landroid/app/PendingIntent;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn contentView<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::RemoteViews>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "contentView\0", "Landroid/widget/RemoteViews;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn set_contentView<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::widget::RemoteViews>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "contentView\0", "Landroid/widget/RemoteViews;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn defaults<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "defaults\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_defaults<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "defaults\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn deleteIntent<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "deleteIntent\0", "Landroid/app/PendingIntent;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn set_deleteIntent<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::app::PendingIntent>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "deleteIntent\0", "Landroid/app/PendingIntent;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-os-Bundle"))]
pub fn extras<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Bundle>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "extras\0", "Landroid/os/Bundle;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-os-Bundle"))]
pub fn set_extras<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::os::Bundle>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "extras\0", "Landroid/os/Bundle;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn flags<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "flags\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_flags<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "flags\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn fullScreenIntent<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "fullScreenIntent\0", "Landroid/app/PendingIntent;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-app-PendingIntent"))]
pub fn set_fullScreenIntent<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::app::PendingIntent>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "fullScreenIntent\0", "Landroid/app/PendingIntent;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn headsUpContentView<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::RemoteViews>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "headsUpContentView\0", "Landroid/widget/RemoteViews;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
pub fn set_headsUpContentView<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::widget::RemoteViews>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "headsUpContentView\0", "Landroid/widget/RemoteViews;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[deprecated] pub fn icon<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "icon\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
#[deprecated] pub fn set_icon<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "icon\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn iconLevel<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "iconLevel\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_iconLevel<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "iconLevel\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-graphics-Bitmap"))]
#[deprecated] pub fn largeIcon<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "largeIcon\0", "Landroid/graphics/Bitmap;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-graphics-Bitmap"))]
#[deprecated] pub fn set_largeIcon<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Bitmap>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "largeIcon\0", "Landroid/graphics/Bitmap;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn ledARGB<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledARGB\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_ledARGB<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledARGB\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn ledOffMS<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledOffMS\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_ledOffMS<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledOffMS\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn ledOnMS<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledOnMS\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_ledOnMS<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "ledOnMS\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn number<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "number\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_number<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "number\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn priority<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "priority\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_priority<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "priority\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-app-Notification"))]
pub fn publicVersion<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Notification>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "publicVersion\0", "Landroid/app/Notification;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-app-Notification"))]
pub fn set_publicVersion<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::app::Notification>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "publicVersion\0", "Landroid/app/Notification;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-net-Uri"))]
pub fn sound<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "sound\0", "Landroid/net/Uri;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-Uri"))]
pub fn set_sound<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::net::Uri>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "sound\0", "Landroid/net/Uri;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn tickerText<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "tickerText\0", "Ljava/lang/CharSequence;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn set_tickerText<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::CharSequence>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "tickerText\0", "Ljava/lang/CharSequence;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
#[deprecated] pub fn tickerView<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::RemoteViews>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "tickerView\0", "Landroid/widget/RemoteViews;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-widget-RemoteViews"))]
#[deprecated] pub fn set_tickerView<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::widget::RemoteViews>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "tickerView\0", "Landroid/widget/RemoteViews;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn vibrate<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::LongArray>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "vibrate\0", "[J\0");
env.get_object_field(self.0.object, __jni_field)
}
}
pub fn set_vibrate<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::LongArray>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "vibrate\0", "[J\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn visibility<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "visibility\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_visibility<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "visibility\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn when<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "when\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_when<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/Notification\0", "when\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
}
}