[]Struct jni_android_sys::android::content::RestrictionsManager

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

public class RestrictionsManager

Required feature: "android-content-RestrictionsManager"

Methods

impl RestrictionsManager

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

getApplicationRestrictions

Required features: "android-os-Bundle"

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

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

requestPermission

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

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

createLocalApprovalIntent

Required features: "android-content-Intent"

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

notifyPermissionResponse

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

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

getManifestRestrictions

Required features: "java-lang-String", "java-util-List"

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

convertRestrictionsToBundle

Required features: "android-os-Bundle", "java-util-List"

pub const ACTION_PERMISSION_RESPONSE_RECEIVED: &'static str[src]

pub const ACTION_REQUEST_LOCAL_APPROVAL: &'static str[src]

public static final ACTION_REQUEST_LOCAL_APPROVAL

pub const ACTION_REQUEST_PERMISSION: &'static str[src]

public static final ACTION_REQUEST_PERMISSION

pub const EXTRA_PACKAGE_NAME: &'static str[src]

public static final EXTRA_PACKAGE_NAME

pub const EXTRA_REQUEST_BUNDLE: &'static str[src]

public static final EXTRA_REQUEST_BUNDLE

pub const EXTRA_REQUEST_ID: &'static str[src]

public static final EXTRA_REQUEST_ID

pub const EXTRA_REQUEST_TYPE: &'static str[src]

public static final EXTRA_REQUEST_TYPE

pub const EXTRA_RESPONSE_BUNDLE: &'static str[src]

public static final EXTRA_RESPONSE_BUNDLE

pub const META_DATA_APP_RESTRICTIONS: &'static str[src]

public static final META_DATA_APP_RESTRICTIONS

pub const REQUEST_KEY_APPROVE_LABEL: &'static str[src]

public static final REQUEST_KEY_APPROVE_LABEL

pub const REQUEST_KEY_DATA: &'static str[src]

public static final REQUEST_KEY_DATA

pub const REQUEST_KEY_DENY_LABEL: &'static str[src]

public static final REQUEST_KEY_DENY_LABEL

pub const REQUEST_KEY_ICON: &'static str[src]

public static final REQUEST_KEY_ICON

pub const REQUEST_KEY_ID: &'static str[src]

public static final REQUEST_KEY_ID

pub const REQUEST_KEY_MESSAGE: &'static str[src]

public static final REQUEST_KEY_MESSAGE

pub const REQUEST_KEY_NEW_REQUEST: &'static str[src]

public static final REQUEST_KEY_NEW_REQUEST

pub const REQUEST_KEY_TITLE: &'static str[src]

public static final REQUEST_KEY_TITLE

pub const REQUEST_TYPE_APPROVAL: &'static str[src]

public static final REQUEST_TYPE_APPROVAL

pub const RESPONSE_KEY_ERROR_CODE: &'static str[src]

public static final RESPONSE_KEY_ERROR_CODE

pub const RESPONSE_KEY_MESSAGE: &'static str[src]

public static final RESPONSE_KEY_MESSAGE

pub const RESPONSE_KEY_RESPONSE_TIMESTAMP: &'static str[src]

public static final RESPONSE_KEY_RESPONSE_TIMESTAMP

pub const RESPONSE_KEY_RESULT: &'static str[src]

public static final RESPONSE_KEY_RESULT

pub const RESULT_APPROVED: i32[src]

public static final RESULT_APPROVED

pub const RESULT_DENIED: i32[src]

public static final RESULT_DENIED

pub const RESULT_ERROR: i32[src]

public static final RESULT_ERROR

pub const RESULT_ERROR_BAD_REQUEST: i32[src]

public static final RESULT_ERROR_BAD_REQUEST

pub const RESULT_ERROR_INTERNAL: i32[src]

public static final RESULT_ERROR_INTERNAL

pub const RESULT_ERROR_NETWORK: i32[src]

public static final RESULT_ERROR_NETWORK

pub const RESULT_NO_RESPONSE: i32[src]

public static final RESULT_NO_RESPONSE

pub const RESULT_UNKNOWN_REQUEST: i32[src]

public static final RESULT_UNKNOWN_REQUEST

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 RestrictionsManager

impl AsValidJObjectAndEnv for RestrictionsManager

impl Deref for RestrictionsManager

type Target = Object

The resulting type after dereferencing.

impl JniType for RestrictionsManager

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.