[−]Struct jni_android_sys::android::service::notification::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]
__jni_env: &'env Env
) -> Result<Local<'env, NotificationListenerService>, Local<'env, Throwable>>
pub fn onNotificationPosted_StatusBarNotification<'env>(
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>,
arg1: impl Into<Option<&'env NotificationListenerService_RankingMap>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>,
arg1: impl Into<Option<&'env NotificationListenerService_RankingMap>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env StatusBarNotification>>,
arg1: impl Into<Option<&'env NotificationListenerService_RankingMap>>,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-service-notification-NotificationListenerService_RankingMap", "android-service-notification-StatusBarNotification"
pub fn onListenerConnected<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn onListenerDisconnected<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn onNotificationRankingUpdate<'env>(
&'env self,
arg0: impl Into<Option<&'env NotificationListenerService_RankingMap>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NotificationListenerService_RankingMap>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-service-notification-NotificationListenerService_RankingMap"
pub fn onListenerHintsChanged<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn cancelNotification_String<'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 cancelAllNotifications<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn cancelNotifications<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn snoozeNotification<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setNotificationsShown<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>,
arg2: impl Into<Option<&'env NotificationChannel>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
Required features: "android-service-notification-StatusBarNotification"
pub fn getSnoozedNotifications<'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 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]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, ObjectArray<StatusBarNotification, Throwable>>>, Local<'env, Throwable>>
Required features: "android-service-notification-StatusBarNotification", "java-lang-String"
pub fn getCurrentListenerHints<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getCurrentInterruptionFilter<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn requestListenerHints<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn requestInterruptionFilter<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getCurrentRanking<'env>(
&'env self
) -> Result<Option<Local<'env, NotificationListenerService_RankingMap>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NotificationListenerService_RankingMap>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, IBinder>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ComponentName>>
) -> Result<(), Local<'env, Throwable>>
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]
public static final HINT_HOST_DISABLE_NOTIFICATION_EFFECTS
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]
public static final NOTIFICATION_CHANNEL_OR_GROUP_ADDED
pub const NOTIFICATION_CHANNEL_OR_GROUP_DELETED: i32
[src]
public static final NOTIFICATION_CHANNEL_OR_GROUP_DELETED
pub const NOTIFICATION_CHANNEL_OR_GROUP_UPDATED: i32
[src]
public static final NOTIFICATION_CHANNEL_OR_GROUP_UPDATED
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]
public static final SUPPRESSED_EFFECT_SCREEN_OFF
pub const SUPPRESSED_EFFECT_SCREEN_ON: i32
[src]
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]
&'env self
) -> Result<Option<Local<'env, Application>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Configuration>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn onBind<'env>(
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, IBinder>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, IBinder>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-content-Intent"
pub fn onRebind<'env>(
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Intent"
pub fn onTaskRemoved<'env>(
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn stopSelfResult<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn startForeground<'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 stopForeground_boolean<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn stopForeground_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for NotificationListenerService
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for NotificationListenerService
impl !Send for NotificationListenerService
impl !Sync for NotificationListenerService
impl Unpin for NotificationListenerService
impl UnwindSafe for NotificationListenerService
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>,