[]Struct jni_android_sys::android::app::admin::DeviceAdminReceiver

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

public class DeviceAdminReceiver

Required feature: "android-app-admin-DeviceAdminReceiver"

Methods

impl DeviceAdminReceiver

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

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

getManager

Required features: "android-app-admin-DevicePolicyManager", "android-content-Context"

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

getWho

Required features: "android-content-ComponentName", "android-content-Context"

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

onEnabled

Required features: "android-content-Context", "android-content-Intent"

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

onDisableRequested

Required features: "android-content-Context", "android-content-Intent", "java-lang-CharSequence"

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

onDisabled

Required features: "android-content-Context", "android-content-Intent"

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

Deprecated

onPasswordChanged

Required features: "android-content-Context", "android-content-Intent"

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

onPasswordChanged

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

Deprecated

onPasswordFailed

Required features: "android-content-Context", "android-content-Intent"

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

onPasswordFailed

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

Deprecated

onPasswordSucceeded

Required features: "android-content-Context", "android-content-Intent"

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

onPasswordSucceeded

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

Deprecated

onPasswordExpiring

Required features: "android-content-Context", "android-content-Intent"

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

onPasswordExpiring

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onProfileProvisioningComplete

Required features: "android-content-Context", "android-content-Intent"

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

Deprecated

onReadyForUserInitialization

Required features: "android-content-Context", "android-content-Intent"

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

onLockTaskModeEntering

Required features: "android-content-Context", "android-content-Intent", "java-lang-String"

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

onLockTaskModeExiting

Required features: "android-content-Context", "android-content-Intent"

pub fn onChoosePrivateKeyAlias<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Uri>>,
    arg4: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

onChoosePrivateKeyAlias

Required features: "android-content-Context", "android-content-Intent", "android-net-Uri", "java-lang-String"

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

onSystemUpdatePending

Required features: "android-content-Context", "android-content-Intent"

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

onBugreportSharingDeclined

Required features: "android-content-Context", "android-content-Intent"

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

onBugreportShared

Required features: "android-content-Context", "android-content-Intent", "java-lang-String"

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

onBugreportFailed

Required features: "android-content-Context", "android-content-Intent"

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

onSecurityLogsAvailable

Required features: "android-content-Context", "android-content-Intent"

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

onNetworkLogsAvailable

Required features: "android-content-Context", "android-content-Intent"

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

onUserAdded

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onUserRemoved

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onUserStarted

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onUserStopped

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onUserSwitched

Required features: "android-content-Context", "android-content-Intent", "android-os-UserHandle"

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

onTransferOwnershipComplete

Required features: "android-content-Context", "android-os-PersistableBundle"

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

onTransferAffiliatedProfileOwnershipComplete

Required features: "android-content-Context", "android-os-UserHandle"

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

onReceive

Required features: "android-content-Context", "android-content-Intent"

pub const ACTION_DEVICE_ADMIN_DISABLED: &'static str[src]

public static final ACTION_DEVICE_ADMIN_DISABLED

pub const ACTION_DEVICE_ADMIN_DISABLE_REQUESTED: &'static str[src]

pub const ACTION_DEVICE_ADMIN_ENABLED: &'static str[src]

public static final ACTION_DEVICE_ADMIN_ENABLED

pub const ACTION_LOCK_TASK_ENTERING: &'static str[src]

public static final ACTION_LOCK_TASK_ENTERING

pub const ACTION_LOCK_TASK_EXITING: &'static str[src]

public static final ACTION_LOCK_TASK_EXITING

pub const ACTION_PASSWORD_CHANGED: &'static str[src]

public static final ACTION_PASSWORD_CHANGED

pub const ACTION_PASSWORD_EXPIRING: &'static str[src]

public static final ACTION_PASSWORD_EXPIRING

pub const ACTION_PASSWORD_FAILED: &'static str[src]

public static final ACTION_PASSWORD_FAILED

pub const ACTION_PASSWORD_SUCCEEDED: &'static str[src]

public static final ACTION_PASSWORD_SUCCEEDED

pub const ACTION_PROFILE_PROVISIONING_COMPLETE: &'static str[src]

pub const BUGREPORT_FAILURE_FAILED_COMPLETING: i32[src]

pub const BUGREPORT_FAILURE_FILE_NO_LONGER_AVAILABLE: i32[src]

pub const DEVICE_ADMIN_META_DATA: &'static str[src]

public static final DEVICE_ADMIN_META_DATA

pub const EXTRA_DISABLE_WARNING: &'static str[src]

public static final EXTRA_DISABLE_WARNING

pub const EXTRA_LOCK_TASK_PACKAGE: &'static str[src]

public static final EXTRA_LOCK_TASK_PACKAGE

pub const EXTRA_TRANSFER_OWNERSHIP_ADMIN_EXTRAS_BUNDLE: &'static str[src]

Methods from Deref<Target = BroadcastReceiver>

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

onReceive

Required features: "android-content-Context", "android-content-Intent"

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

goAsync

Required features: "android-content-BroadcastReceiver_PendingResult"

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

peekService

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

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

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

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

setResultData

Required features: "java-lang-String"

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

getResultData

Required features: "java-lang-String"

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

setResultExtras

Required features: "android-os-Bundle"

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

getResultExtras

Required features: "android-os-Bundle"

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

setResult

Required features: "android-os-Bundle", "java-lang-String"

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

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

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

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

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

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

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

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

Trait Implementations

impl AsJValue for DeviceAdminReceiver

impl AsValidJObjectAndEnv for DeviceAdminReceiver

impl Deref for DeviceAdminReceiver

type Target = BroadcastReceiver

The resulting type after dereferencing.

impl JniType for DeviceAdminReceiver

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.