[]Struct jni_android_sys::android::service::dreams::DreamService

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

public class DreamService

Required feature: "android-service-dreams-DreamService"

Methods

impl DreamService

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

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

dispatchKeyEvent

Required features: "android-view-KeyEvent"

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

dispatchKeyShortcutEvent

Required features: "android-view-KeyEvent"

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

dispatchTouchEvent

Required features: "android-view-MotionEvent"

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

dispatchTrackballEvent

Required features: "android-view-MotionEvent"

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

dispatchGenericMotionEvent

Required features: "android-view-MotionEvent"

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

dispatchPopulateAccessibilityEvent

Required features: "android-view-accessibility-AccessibilityEvent"

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

onCreatePanelView

Required features: "android-view-View"

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

onCreatePanelMenu

Required features: "android-view-Menu"

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

onPreparePanel

Required features: "android-view-Menu", "android-view-View"

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

onMenuOpened

Required features: "android-view-Menu"

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

onMenuItemSelected

Required features: "android-view-MenuItem"

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

onWindowAttributesChanged

Required features: "android-view-WindowManager_LayoutParams"

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

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

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

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

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

onPanelClosed

Required features: "android-view-Menu"

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

onSearchRequested

Required features: "android-view-SearchEvent"

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

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

onWindowStartingActionMode

Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"

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

onWindowStartingActionMode

Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"

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

onActionModeStarted

Required features: "android-view-ActionMode"

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

onActionModeFinished

Required features: "android-view-ActionMode"

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

getWindowManager

Required features: "android-view-WindowManager"

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

getWindow

Required features: "android-view-Window"

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

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

setContentView

Required features: "android-view-View"

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

setContentView

Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"

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

addContentView

Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"

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

findViewById

Required features: "android-view-View"

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

requireViewById

Required features: "android-view-View"

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

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

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

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

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

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

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

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

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

pub fn onWakeUp<'env>(&'env self) -> 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 finish<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

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

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

pub const DREAM_META_DATA: &'static str[src]

public static final DREAM_META_DATA

pub const SERVICE_INTERFACE: &'static str[src]

public static final SERVICE_INTERFACE

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 DreamService

impl AsRef<Window_Callback> for DreamService

impl AsValidJObjectAndEnv for DreamService

impl Deref for DreamService

type Target = Service

The resulting type after dereferencing.

impl JniType for DreamService

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.