[]Struct jni_android_sys::android::app::NotificationManager

#[repr(transparent)]
pub struct 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]

notify

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]

notify

Required features: "android-app-Notification", "java-lang-String"

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

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

cancel

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]

createNotificationChannelGroup

Required features: "android-app-NotificationChannelGroup"

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

createNotificationChannelGroups

Required features: "java-util-List"

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

createNotificationChannel

Required features: "android-app-NotificationChannel"

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

createNotificationChannels

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]

getNotificationChannel

Required features: "android-app-NotificationChannel", "java-lang-String"

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

getNotificationChannels

Required features: "java-util-List"

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

deleteNotificationChannel

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]

getNotificationChannelGroup

Required features: "android-app-NotificationChannelGroup", "java-lang-String"

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

getNotificationChannelGroups

Required features: "java-util-List"

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

deleteNotificationChannelGroup

Required features: "java-lang-String"

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

getAutomaticZenRules

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]

getAutomaticZenRule

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]

addAutomaticZenRule

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]

updateAutomaticZenRule

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]

removeAutomaticZenRule

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]

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

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

isNotificationListenerAccessGranted

Required features: "android-content-ComponentName"

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

getNotificationPolicy

Required features: "android-app-NotificationManager_Policy"

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

setNotificationPolicy

Required features: "android-app-NotificationManager_Policy"

pub fn getActiveNotifications<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
[src]

getActiveNotifications

Required features: "android-service-notification-StatusBarNotification"

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

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

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]

pub const ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED: &'static str[src]

pub const ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED: &'static str[src]

pub const ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED: &'static str[src]

pub const ACTION_NOTIFICATION_POLICY_CHANGED: &'static str[src]

pub const EXTRA_BLOCKED_STATE: &'static str[src]

public static final EXTRA_BLOCKED_STATE

pub const EXTRA_NOTIFICATION_CHANNEL_GROUP_ID: &'static str[src]

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]

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 NotificationManager

impl AsValidJObjectAndEnv for NotificationManager

impl Deref for NotificationManager

type Target = Object

The resulting type after dereferencing.

impl JniType for NotificationManager

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.