[]Struct jni_android_sys::android::app::Notification

#[repr(transparent)]
pub struct Notification(_);

public class Notification

Required feature: "android-app-Notification"

Methods

impl Notification

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, Notification>, Local<'env, Throwable>>
[src]

pub fn new_int_CharSequence_long<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env CharSequence>>,
    arg2: i64
) -> Result<Local<'env, Notification>, Local<'env, Throwable>>
[src]

Deprecated

Notification

Required features: "java-lang-CharSequence"

pub fn new_Parcel<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Parcel>>
) -> Result<Local<'env, Notification>, Local<'env, Throwable>>
[src]

Notification

Required features: "android-os-Parcel"

pub fn getGroup<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getGroup

Required features: "java-lang-String"

pub fn getSortKey<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getSortKey

Required features: "java-lang-String"

pub fn clone<'env>(
    &'env self
) -> Result<Option<Local<'env, Notification>>, Local<'env, Throwable>>
[src]

clone

Required features: "android-app-Notification"

pub fn describeContents<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn writeToParcel<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Parcel>>,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

writeToParcel

Required features: "android-os-Parcel"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn getChannelId<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getChannelId

Required features: "java-lang-String"

pub fn getTimeoutAfter<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getBadgeIconType<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getShortcutId<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getShortcutId

Required features: "java-lang-String"

pub fn getSettingsText<'env>(
    &'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getSettingsText

Required features: "java-lang-CharSequence"

pub fn getGroupAlertBehavior<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getSmallIcon<'env>(
    &'env self
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

getSmallIcon

Required features: "android-graphics-drawable-Icon"

pub fn getLargeIcon<'env>(
    &'env self
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

getLargeIcon

Required features: "android-graphics-drawable-Icon"

pub fn AUDIO_ATTRIBUTES_DEFAULT<'env>(
    env: &'env Env
) -> Option<Local<'env, AudioAttributes>>
[src]

get public static final AUDIO_ATTRIBUTES_DEFAULT

Required feature: "android-media-AudioAttributes"

pub const BADGE_ICON_LARGE: i32[src]

public static final BADGE_ICON_LARGE

pub const BADGE_ICON_NONE: i32[src]

public static final BADGE_ICON_NONE

pub const BADGE_ICON_SMALL: i32[src]

public static final BADGE_ICON_SMALL

pub const CATEGORY_ALARM: &'static str[src]

public static final CATEGORY_ALARM

pub const CATEGORY_CALL: &'static str[src]

public static final CATEGORY_CALL

pub const CATEGORY_EMAIL: &'static str[src]

public static final CATEGORY_EMAIL

pub const CATEGORY_ERROR: &'static str[src]

public static final CATEGORY_ERROR

pub const CATEGORY_EVENT: &'static str[src]

public static final CATEGORY_EVENT

pub const CATEGORY_MESSAGE: &'static str[src]

public static final CATEGORY_MESSAGE

pub const CATEGORY_NAVIGATION: &'static str[src]

public static final CATEGORY_NAVIGATION

pub const CATEGORY_PROGRESS: &'static str[src]

public static final CATEGORY_PROGRESS

pub const CATEGORY_PROMO: &'static str[src]

public static final CATEGORY_PROMO

pub const CATEGORY_RECOMMENDATION: &'static str[src]

public static final CATEGORY_RECOMMENDATION

pub const CATEGORY_REMINDER: &'static str[src]

public static final CATEGORY_REMINDER

pub const CATEGORY_SERVICE: &'static str[src]

public static final CATEGORY_SERVICE

pub const CATEGORY_SOCIAL: &'static str[src]

public static final CATEGORY_SOCIAL

pub const CATEGORY_STATUS: &'static str[src]

public static final CATEGORY_STATUS

pub const CATEGORY_SYSTEM: &'static str[src]

public static final CATEGORY_SYSTEM

pub const CATEGORY_TRANSPORT: &'static str[src]

public static final CATEGORY_TRANSPORT

pub const COLOR_DEFAULT: i32[src]

public static final COLOR_DEFAULT

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const DEFAULT_ALL: i32[src]

public static final DEFAULT_ALL

pub const DEFAULT_LIGHTS: i32[src]

public static final DEFAULT_LIGHTS

pub const DEFAULT_SOUND: i32[src]

public static final DEFAULT_SOUND

pub const DEFAULT_VIBRATE: i32[src]

public static final DEFAULT_VIBRATE

pub const EXTRA_AUDIO_CONTENTS_URI: &'static str[src]

public static final EXTRA_AUDIO_CONTENTS_URI

pub const EXTRA_BACKGROUND_IMAGE_URI: &'static str[src]

public static final EXTRA_BACKGROUND_IMAGE_URI

pub const EXTRA_BIG_TEXT: &'static str[src]

public static final EXTRA_BIG_TEXT

pub const EXTRA_CHANNEL_GROUP_ID: &'static str[src]

public static final EXTRA_CHANNEL_GROUP_ID

pub const EXTRA_CHANNEL_ID: &'static str[src]

public static final EXTRA_CHANNEL_ID

pub const EXTRA_CHRONOMETER_COUNT_DOWN: &'static str[src]

public static final EXTRA_CHRONOMETER_COUNT_DOWN

pub const EXTRA_COLORIZED: &'static str[src]

public static final EXTRA_COLORIZED

pub const EXTRA_COMPACT_ACTIONS: &'static str[src]

public static final EXTRA_COMPACT_ACTIONS

pub const EXTRA_CONVERSATION_TITLE: &'static str[src]

public static final EXTRA_CONVERSATION_TITLE

pub const EXTRA_HISTORIC_MESSAGES: &'static str[src]

public static final EXTRA_HISTORIC_MESSAGES

pub const EXTRA_INFO_TEXT: &'static str[src]

public static final EXTRA_INFO_TEXT

pub const EXTRA_IS_GROUP_CONVERSATION: &'static str[src]

public static final EXTRA_IS_GROUP_CONVERSATION

pub const EXTRA_LARGE_ICON: &'static str[src]

Deprecated

public static final EXTRA_LARGE_ICON

pub const EXTRA_LARGE_ICON_BIG: &'static str[src]

public static final EXTRA_LARGE_ICON_BIG

pub const EXTRA_MEDIA_SESSION: &'static str[src]

public static final EXTRA_MEDIA_SESSION

pub const EXTRA_MESSAGES: &'static str[src]

public static final EXTRA_MESSAGES

pub const EXTRA_MESSAGING_PERSON: &'static str[src]

public static final EXTRA_MESSAGING_PERSON

pub const EXTRA_NOTIFICATION_ID: &'static str[src]

public static final EXTRA_NOTIFICATION_ID

pub const EXTRA_NOTIFICATION_TAG: &'static str[src]

public static final EXTRA_NOTIFICATION_TAG

pub const EXTRA_PEOPLE: &'static str[src]

Deprecated

public static final EXTRA_PEOPLE

pub const EXTRA_PEOPLE_LIST: &'static str[src]

public static final EXTRA_PEOPLE_LIST

pub const EXTRA_PICTURE: &'static str[src]

public static final EXTRA_PICTURE

pub const EXTRA_PROGRESS: &'static str[src]

public static final EXTRA_PROGRESS

pub const EXTRA_PROGRESS_INDETERMINATE: &'static str[src]

public static final EXTRA_PROGRESS_INDETERMINATE

pub const EXTRA_PROGRESS_MAX: &'static str[src]

public static final EXTRA_PROGRESS_MAX

pub const EXTRA_REMOTE_INPUT_DRAFT: &'static str[src]

public static final EXTRA_REMOTE_INPUT_DRAFT

pub const EXTRA_REMOTE_INPUT_HISTORY: &'static str[src]

public static final EXTRA_REMOTE_INPUT_HISTORY

pub const EXTRA_SELF_DISPLAY_NAME: &'static str[src]

Deprecated

public static final EXTRA_SELF_DISPLAY_NAME

pub const EXTRA_SHOW_CHRONOMETER: &'static str[src]

public static final EXTRA_SHOW_CHRONOMETER

pub const EXTRA_SHOW_WHEN: &'static str[src]

public static final EXTRA_SHOW_WHEN

pub const EXTRA_SMALL_ICON: &'static str[src]

Deprecated

public static final EXTRA_SMALL_ICON

pub const EXTRA_SUB_TEXT: &'static str[src]

public static final EXTRA_SUB_TEXT

pub const EXTRA_SUMMARY_TEXT: &'static str[src]

public static final EXTRA_SUMMARY_TEXT

pub const EXTRA_TEMPLATE: &'static str[src]

public static final EXTRA_TEMPLATE

pub const EXTRA_TEXT: &'static str[src]

public static final EXTRA_TEXT

pub const EXTRA_TEXT_LINES: &'static str[src]

public static final EXTRA_TEXT_LINES

pub const EXTRA_TITLE: &'static str[src]

public static final EXTRA_TITLE

pub const EXTRA_TITLE_BIG: &'static str[src]

public static final EXTRA_TITLE_BIG

pub const FLAG_AUTO_CANCEL: i32[src]

public static final FLAG_AUTO_CANCEL

pub const FLAG_FOREGROUND_SERVICE: i32[src]

public static final FLAG_FOREGROUND_SERVICE

pub const FLAG_GROUP_SUMMARY: i32[src]

public static final FLAG_GROUP_SUMMARY

pub const FLAG_HIGH_PRIORITY: i32[src]

Deprecated

public static final FLAG_HIGH_PRIORITY

pub const FLAG_INSISTENT: i32[src]

public static final FLAG_INSISTENT

pub const FLAG_LOCAL_ONLY: i32[src]

public static final FLAG_LOCAL_ONLY

pub const FLAG_NO_CLEAR: i32[src]

public static final FLAG_NO_CLEAR

pub const FLAG_ONGOING_EVENT: i32[src]

public static final FLAG_ONGOING_EVENT

pub const FLAG_ONLY_ALERT_ONCE: i32[src]

public static final FLAG_ONLY_ALERT_ONCE

pub const FLAG_SHOW_LIGHTS: i32[src]

Deprecated

public static final FLAG_SHOW_LIGHTS

pub const GROUP_ALERT_ALL: i32[src]

public static final GROUP_ALERT_ALL

pub const GROUP_ALERT_CHILDREN: i32[src]

public static final GROUP_ALERT_CHILDREN

pub const GROUP_ALERT_SUMMARY: i32[src]

public static final GROUP_ALERT_SUMMARY

pub const INTENT_CATEGORY_NOTIFICATION_PREFERENCES: &'static str[src]

pub const PRIORITY_DEFAULT: i32[src]

Deprecated

public static final PRIORITY_DEFAULT

pub const PRIORITY_HIGH: i32[src]

Deprecated

public static final PRIORITY_HIGH

pub const PRIORITY_LOW: i32[src]

Deprecated

public static final PRIORITY_LOW

pub const PRIORITY_MAX: i32[src]

Deprecated

public static final PRIORITY_MAX

pub const PRIORITY_MIN: i32[src]

Deprecated

public static final PRIORITY_MIN

pub const STREAM_DEFAULT: i32[src]

Deprecated

public static final STREAM_DEFAULT

pub const VISIBILITY_PRIVATE: i32[src]

public static final VISIBILITY_PRIVATE

pub const VISIBILITY_PUBLIC: i32[src]

public static final VISIBILITY_PUBLIC

pub const VISIBILITY_SECRET: i32[src]

public static final VISIBILITY_SECRET

pub fn actions<'env>(
    &'env self
) -> Option<Local<'env, ObjectArray<Notification_Action, Throwable>>>
[src]

get public actions

Required feature: "android-app-Notification_Action"

pub fn set_actions<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj ObjectArray<Notification_Action, Throwable>>>
)
[src]

set public actions

Required feature: "android-app-Notification_Action"

pub fn audioAttributes<'env>(&'env self) -> Option<Local<'env, AudioAttributes>>[src]

Deprecated

get public audioAttributes

Required feature: "android-media-AudioAttributes"

pub fn set_audioAttributes<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj AudioAttributes>>
)
[src]

Deprecated

set public audioAttributes

Required feature: "android-media-AudioAttributes"

pub fn audioStreamType<'env>(&'env self) -> i32[src]

Deprecated

get public audioStreamType

pub fn set_audioStreamType<'env>(&'env self, value: i32)[src]

Deprecated

set public audioStreamType

pub fn bigContentView<'env>(&'env self) -> Option<Local<'env, RemoteViews>>[src]

Deprecated

get public bigContentView

Required feature: "android-widget-RemoteViews"

pub fn set_bigContentView<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj RemoteViews>>
)
[src]

Deprecated

set public bigContentView

Required feature: "android-widget-RemoteViews"

pub fn category<'env>(&'env self) -> Option<Local<'env, String>>[src]

get public category

Required feature: "java-lang-String"

pub fn set_category<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj String>>
)
[src]

set public category

Required feature: "java-lang-String"

pub fn color<'env>(&'env self) -> i32[src]

get public color

pub fn set_color<'env>(&'env self, value: i32)[src]

set public color

pub fn contentIntent<'env>(&'env self) -> Option<Local<'env, PendingIntent>>[src]

get public contentIntent

Required feature: "android-app-PendingIntent"

pub fn set_contentIntent<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj PendingIntent>>
)
[src]

set public contentIntent

Required feature: "android-app-PendingIntent"

pub fn contentView<'env>(&'env self) -> Option<Local<'env, RemoteViews>>[src]

Deprecated

get public contentView

Required feature: "android-widget-RemoteViews"

pub fn set_contentView<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj RemoteViews>>
)
[src]

Deprecated

set public contentView

Required feature: "android-widget-RemoteViews"

pub fn defaults<'env>(&'env self) -> i32[src]

Deprecated

get public defaults

pub fn set_defaults<'env>(&'env self, value: i32)[src]

Deprecated

set public defaults

pub fn deleteIntent<'env>(&'env self) -> Option<Local<'env, PendingIntent>>[src]

get public deleteIntent

Required feature: "android-app-PendingIntent"

pub fn set_deleteIntent<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj PendingIntent>>
)
[src]

set public deleteIntent

Required feature: "android-app-PendingIntent"

pub fn extras<'env>(&'env self) -> Option<Local<'env, Bundle>>[src]

get public extras

Required feature: "android-os-Bundle"

pub fn set_extras<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj Bundle>>
)
[src]

set public extras

Required feature: "android-os-Bundle"

pub fn flags<'env>(&'env self) -> i32[src]

get public flags

pub fn set_flags<'env>(&'env self, value: i32)[src]

set public flags

pub fn fullScreenIntent<'env>(&'env self) -> Option<Local<'env, PendingIntent>>[src]

get public fullScreenIntent

Required feature: "android-app-PendingIntent"

pub fn set_fullScreenIntent<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj PendingIntent>>
)
[src]

set public fullScreenIntent

Required feature: "android-app-PendingIntent"

pub fn headsUpContentView<'env>(&'env self) -> Option<Local<'env, RemoteViews>>[src]

Deprecated

get public headsUpContentView

Required feature: "android-widget-RemoteViews"

pub fn set_headsUpContentView<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj RemoteViews>>
)
[src]

Deprecated

set public headsUpContentView

Required feature: "android-widget-RemoteViews"

pub fn icon<'env>(&'env self) -> i32[src]

Deprecated

get public icon

pub fn set_icon<'env>(&'env self, value: i32)[src]

Deprecated

set public icon

pub fn iconLevel<'env>(&'env self) -> i32[src]

get public iconLevel

pub fn set_iconLevel<'env>(&'env self, value: i32)[src]

set public iconLevel

pub fn largeIcon<'env>(&'env self) -> Option<Local<'env, Bitmap>>[src]

Deprecated

get public largeIcon

Required feature: "android-graphics-Bitmap"

pub fn set_largeIcon<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj Bitmap>>
)
[src]

Deprecated

set public largeIcon

Required feature: "android-graphics-Bitmap"

pub fn ledARGB<'env>(&'env self) -> i32[src]

Deprecated

get public ledARGB

pub fn set_ledARGB<'env>(&'env self, value: i32)[src]

Deprecated

set public ledARGB

pub fn ledOffMS<'env>(&'env self) -> i32[src]

Deprecated

get public ledOffMS

pub fn set_ledOffMS<'env>(&'env self, value: i32)[src]

Deprecated

set public ledOffMS

pub fn ledOnMS<'env>(&'env self) -> i32[src]

Deprecated

get public ledOnMS

pub fn set_ledOnMS<'env>(&'env self, value: i32)[src]

Deprecated

set public ledOnMS

pub fn number<'env>(&'env self) -> i32[src]

get public number

pub fn set_number<'env>(&'env self, value: i32)[src]

set public number

pub fn priority<'env>(&'env self) -> i32[src]

Deprecated

get public priority

pub fn set_priority<'env>(&'env self, value: i32)[src]

Deprecated

set public priority

pub fn publicVersion<'env>(&'env self) -> Option<Local<'env, Notification>>[src]

get public publicVersion

Required feature: "android-app-Notification"

pub fn set_publicVersion<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj Notification>>
)
[src]

set public publicVersion

Required feature: "android-app-Notification"

pub fn sound<'env>(&'env self) -> Option<Local<'env, Uri>>[src]

Deprecated

get public sound

Required feature: "android-net-Uri"

pub fn set_sound<'env, 'obj>(&'env self, value: impl Into<Option<&'obj Uri>>)[src]

Deprecated

set public sound

Required feature: "android-net-Uri"

pub fn tickerText<'env>(&'env self) -> Option<Local<'env, CharSequence>>[src]

get public tickerText

Required feature: "java-lang-CharSequence"

pub fn set_tickerText<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj CharSequence>>
)
[src]

set public tickerText

Required feature: "java-lang-CharSequence"

pub fn tickerView<'env>(&'env self) -> Option<Local<'env, RemoteViews>>[src]

Deprecated

get public tickerView

Required feature: "android-widget-RemoteViews"

pub fn set_tickerView<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj RemoteViews>>
)
[src]

Deprecated

set public tickerView

Required feature: "android-widget-RemoteViews"

pub fn vibrate<'env>(&'env self) -> Option<Local<'env, LongArray>>[src]

Deprecated

get public vibrate

pub fn set_vibrate<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj LongArray>>
)
[src]

Deprecated

set public vibrate

pub fn visibility<'env>(&'env self) -> i32[src]

get public visibility

pub fn set_visibility<'env>(&'env self, value: i32)[src]

set public visibility

pub fn when<'env>(&'env self) -> i64[src]

get public when

pub fn set_when<'env>(&'env self, value: i64)[src]

set public when

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Notification

impl AsRef<Parcelable> for Notification

impl AsValidJObjectAndEnv for Notification

impl Deref for Notification

type Target = Object

The resulting type after dereferencing.

impl JniType for Notification

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.