[−]Struct jni_android_sys::android::app::NotificationManager
public class NotificationManager
Required feature: "android-app-NotificationManager"
Methods
impl NotificationManager
pub fn notify_int_Notification<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Notification>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Notification>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Notification"
pub fn notify_String_int_Notification<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env Notification>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env Notification>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Notification", "java-lang-String"
pub fn cancel_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn cancel_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn cancelAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn createNotificationChannelGroup<'env>(
&'env self,
arg0: impl Into<Option<&'env NotificationChannelGroup>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NotificationChannelGroup>>
) -> Result<(), Local<'env, Throwable>>
createNotificationChannelGroup
Required features: "android-app-NotificationChannelGroup"
pub fn createNotificationChannelGroups<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
createNotificationChannelGroups
Required features: "java-util-List"
pub fn createNotificationChannel<'env>(
&'env self,
arg0: impl Into<Option<&'env NotificationChannel>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NotificationChannel>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-NotificationChannel"
pub fn createNotificationChannels<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getNotificationChannel<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, NotificationChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, NotificationChannel>>, Local<'env, Throwable>>
Required features: "android-app-NotificationChannel", "java-lang-String"
pub fn getNotificationChannels<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn deleteNotificationChannel<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getNotificationChannelGroup<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, NotificationChannelGroup>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, NotificationChannelGroup>>, Local<'env, Throwable>>
Required features: "android-app-NotificationChannelGroup", "java-lang-String"
pub fn getNotificationChannelGroups<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn deleteNotificationChannelGroup<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
deleteNotificationChannelGroup
Required features: "java-lang-String"
pub fn getAutomaticZenRules<'env>(
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn getAutomaticZenRule<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, AutomaticZenRule>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, AutomaticZenRule>>, Local<'env, Throwable>>
Required features: "android-app-AutomaticZenRule", "java-lang-String"
pub fn addAutomaticZenRule<'env>(
&'env self,
arg0: impl Into<Option<&'env AutomaticZenRule>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AutomaticZenRule>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-app-AutomaticZenRule", "java-lang-String"
pub fn updateAutomaticZenRule<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env AutomaticZenRule>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env AutomaticZenRule>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-app-AutomaticZenRule", "java-lang-String"
pub fn removeAutomaticZenRule<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getImportance<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn areNotificationsEnabled<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isNotificationPolicyAccessGranted<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isNotificationListenerAccessGranted<'env>(
&'env self,
arg0: impl Into<Option<&'env ComponentName>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ComponentName>>
) -> Result<bool, Local<'env, Throwable>>
isNotificationListenerAccessGranted
Required features: "android-content-ComponentName"
pub fn getNotificationPolicy<'env>(
&'env self
) -> Result<Option<Local<'env, NotificationManager_Policy>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NotificationManager_Policy>>, Local<'env, Throwable>>
Required features: "android-app-NotificationManager_Policy"
pub fn setNotificationPolicy<'env>(
&'env self,
arg0: impl Into<Option<&'env NotificationManager_Policy>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NotificationManager_Policy>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-NotificationManager_Policy"
pub fn getActiveNotifications<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
Required features: "android-service-notification-StatusBarNotification"
pub fn getCurrentInterruptionFilter<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setInterruptionFilter<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub const ACTION_APP_BLOCK_STATE_CHANGED: &'static str
[src]
public static final ACTION_APP_BLOCK_STATE_CHANGED
pub const ACTION_INTERRUPTION_FILTER_CHANGED: &'static str
[src]
public static final ACTION_INTERRUPTION_FILTER_CHANGED
pub const ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED: &'static str
[src]
public static final ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
pub const ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED: &'static str
[src]
public static final ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
pub const ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED: &'static str
[src]
public static final ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED
pub const ACTION_NOTIFICATION_POLICY_CHANGED: &'static str
[src]
public static final ACTION_NOTIFICATION_POLICY_CHANGED
pub const EXTRA_BLOCKED_STATE: &'static str
[src]
public static final EXTRA_BLOCKED_STATE
pub const EXTRA_NOTIFICATION_CHANNEL_GROUP_ID: &'static str
[src]
public static final EXTRA_NOTIFICATION_CHANNEL_GROUP_ID
pub const EXTRA_NOTIFICATION_CHANNEL_ID: &'static str
[src]
public static final EXTRA_NOTIFICATION_CHANNEL_ID
pub const IMPORTANCE_DEFAULT: i32
[src]
public static final IMPORTANCE_DEFAULT
pub const IMPORTANCE_HIGH: i32
[src]
public static final IMPORTANCE_HIGH
pub const IMPORTANCE_LOW: i32
[src]
public static final IMPORTANCE_LOW
pub const IMPORTANCE_MAX: i32
[src]
public static final IMPORTANCE_MAX
pub const IMPORTANCE_MIN: i32
[src]
public static final IMPORTANCE_MIN
pub const IMPORTANCE_NONE: i32
[src]
public static final IMPORTANCE_NONE
pub const IMPORTANCE_UNSPECIFIED: i32
[src]
public static final IMPORTANCE_UNSPECIFIED
pub const INTERRUPTION_FILTER_ALARMS: i32
[src]
public static final INTERRUPTION_FILTER_ALARMS
pub const INTERRUPTION_FILTER_ALL: i32
[src]
public static final INTERRUPTION_FILTER_ALL
pub const INTERRUPTION_FILTER_NONE: i32
[src]
public static final INTERRUPTION_FILTER_NONE
pub const INTERRUPTION_FILTER_PRIORITY: i32
[src]
public static final INTERRUPTION_FILTER_PRIORITY
pub const INTERRUPTION_FILTER_UNKNOWN: i32
[src]
public static final INTERRUPTION_FILTER_UNKNOWN
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for NotificationManager
impl AsValidJObjectAndEnv for NotificationManager
impl Deref for NotificationManager
impl JniType for NotificationManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for NotificationManager
impl !Send for NotificationManager
impl !Sync for NotificationManager
impl Unpin for NotificationManager
impl UnwindSafe for NotificationManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,