[]Struct jni_android_sys::android::service::notification::NotificationListenerService

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

public class NotificationListenerService

Required feature: "android-service-notification-NotificationListenerService"

Methods

impl NotificationListenerService

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

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

onNotificationPosted

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

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

onNotificationPosted

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

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

onNotificationRemoved

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

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

onNotificationRemoved

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

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

onNotificationRemoved

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

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

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

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

onNotificationRankingUpdate

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

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

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

onNotificationChannelModified

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

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

onNotificationChannelGroupModified

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

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

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

Deprecated

cancelNotification

Required features: "java-lang-String"

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

cancelNotification

Required features: "java-lang-String"

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

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

cancelNotifications

Required features: "java-lang-String"

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

snoozeNotification

Required features: "java-lang-String"

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

setNotificationsShown

Required features: "java-lang-String"

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

updateNotificationChannel

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

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

getNotificationChannels

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

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

getNotificationChannelGroups

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

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 getSnoozedNotifications<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
[src]

getSnoozedNotifications

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

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

getActiveNotifications

Required features: "android-service-notification-StatusBarNotification", "java-lang-String"

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

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

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

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

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

getCurrentRanking

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

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

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

requestRebind

Required features: "android-content-ComponentName"

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

pub const HINT_HOST_DISABLE_CALL_EFFECTS: i32[src]

public static final HINT_HOST_DISABLE_CALL_EFFECTS

pub const HINT_HOST_DISABLE_EFFECTS: i32[src]

public static final HINT_HOST_DISABLE_EFFECTS

pub const HINT_HOST_DISABLE_NOTIFICATION_EFFECTS: i32[src]

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

pub const NOTIFICATION_CHANNEL_OR_GROUP_ADDED: i32[src]

pub const NOTIFICATION_CHANNEL_OR_GROUP_DELETED: i32[src]

pub const NOTIFICATION_CHANNEL_OR_GROUP_UPDATED: i32[src]

pub const REASON_APP_CANCEL: i32[src]

public static final REASON_APP_CANCEL

pub const REASON_APP_CANCEL_ALL: i32[src]

public static final REASON_APP_CANCEL_ALL

pub const REASON_CANCEL: i32[src]

public static final REASON_CANCEL

pub const REASON_CANCEL_ALL: i32[src]

public static final REASON_CANCEL_ALL

pub const REASON_CHANNEL_BANNED: i32[src]

public static final REASON_CHANNEL_BANNED

pub const REASON_CLICK: i32[src]

public static final REASON_CLICK

pub const REASON_ERROR: i32[src]

public static final REASON_ERROR

pub const REASON_GROUP_OPTIMIZATION: i32[src]

public static final REASON_GROUP_OPTIMIZATION

pub const REASON_GROUP_SUMMARY_CANCELED: i32[src]

public static final REASON_GROUP_SUMMARY_CANCELED

pub const REASON_LISTENER_CANCEL: i32[src]

public static final REASON_LISTENER_CANCEL

pub const REASON_LISTENER_CANCEL_ALL: i32[src]

public static final REASON_LISTENER_CANCEL_ALL

pub const REASON_PACKAGE_BANNED: i32[src]

public static final REASON_PACKAGE_BANNED

pub const REASON_PACKAGE_CHANGED: i32[src]

public static final REASON_PACKAGE_CHANGED

pub const REASON_PACKAGE_SUSPENDED: i32[src]

public static final REASON_PACKAGE_SUSPENDED

pub const REASON_PROFILE_TURNED_OFF: i32[src]

public static final REASON_PROFILE_TURNED_OFF

pub const REASON_SNOOZED: i32[src]

public static final REASON_SNOOZED

pub const REASON_TIMEOUT: i32[src]

public static final REASON_TIMEOUT

pub const REASON_UNAUTOBUNDLED: i32[src]

public static final REASON_UNAUTOBUNDLED

pub const REASON_USER_STOPPED: i32[src]

public static final REASON_USER_STOPPED

pub const SERVICE_INTERFACE: &'static str[src]

public static final SERVICE_INTERFACE

pub const SUPPRESSED_EFFECT_SCREEN_OFF: i32[src]

Deprecated

public static final SUPPRESSED_EFFECT_SCREEN_OFF

pub const SUPPRESSED_EFFECT_SCREEN_ON: i32[src]

Deprecated

public static final SUPPRESSED_EFFECT_SCREEN_ON

Methods from Deref<Target = Service>

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

getApplication

Required features: "android-app-Application"

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

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

Deprecated

onStart

Required features: "android-content-Intent"

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

onStartCommand

Required features: "android-content-Intent"

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

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

onConfigurationChanged

Required features: "android-content-res-Configuration"

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

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

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

onUnbind

Required features: "android-content-Intent"

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

onRebind

Required features: "android-content-Intent"

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

onTaskRemoved

Required features: "android-content-Intent"

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

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

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

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

startForeground

Required features: "android-app-Notification"

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

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

pub const START_CONTINUATION_MASK: i32[src]

pub const START_FLAG_REDELIVERY: i32[src]

pub const START_FLAG_RETRY: i32[src]

pub const START_NOT_STICKY: i32[src]

pub const START_REDELIVER_INTENT: i32[src]

pub const START_STICKY: i32[src]

pub const START_STICKY_COMPATIBILITY: i32[src]

pub const STOP_FOREGROUND_DETACH: i32[src]

pub const STOP_FOREGROUND_REMOVE: i32[src]

Trait Implementations

impl AsJValue for NotificationListenerService

impl AsValidJObjectAndEnv for NotificationListenerService

impl Deref for NotificationListenerService

type Target = Service

The resulting type after dereferencing.

impl JniType for NotificationListenerService

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.