[]Struct jni_android_sys::android::app::DownloadManager_Request

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

public class DownloadManager.Request

Required feature: "android-app-DownloadManager_Request"

Methods

impl DownloadManager_Request

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

Request

Required features: "android-net-Uri"

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

setDestinationUri

Required features: "android-app-DownloadManager_Request", "android-net-Uri"

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

setDestinationInExternalFilesDir

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

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

setDestinationInExternalPublicDir

Required features: "android-app-DownloadManager_Request", "java-lang-String"

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

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

addRequestHeader

Required features: "android-app-DownloadManager_Request", "java-lang-String"

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

setTitle

Required features: "android-app-DownloadManager_Request", "java-lang-CharSequence"

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

setDescription

Required features: "android-app-DownloadManager_Request", "java-lang-CharSequence"

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

setMimeType

Required features: "android-app-DownloadManager_Request", "java-lang-String"

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

Deprecated

setShowRunningNotification

Required features: "android-app-DownloadManager_Request"

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

setNotificationVisibility

Required features: "android-app-DownloadManager_Request"

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

setAllowedNetworkTypes

Required features: "android-app-DownloadManager_Request"

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

setAllowedOverRoaming

Required features: "android-app-DownloadManager_Request"

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

setAllowedOverMetered

Required features: "android-app-DownloadManager_Request"

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

setRequiresCharging

Required features: "android-app-DownloadManager_Request"

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

setRequiresDeviceIdle

Required features: "android-app-DownloadManager_Request"

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

setVisibleInDownloadsUi

Required features: "android-app-DownloadManager_Request"

pub const NETWORK_MOBILE: i32[src]

public static final NETWORK_MOBILE

pub const NETWORK_WIFI: i32[src]

public static final NETWORK_WIFI

pub const VISIBILITY_HIDDEN: i32[src]

public static final VISIBILITY_HIDDEN

pub const VISIBILITY_VISIBLE: i32[src]

public static final VISIBILITY_VISIBLE

pub const VISIBILITY_VISIBLE_NOTIFY_COMPLETED: i32[src]

pub const VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION: i32[src]

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 DownloadManager_Request

impl AsValidJObjectAndEnv for DownloadManager_Request

impl Deref for DownloadManager_Request

type Target = Object

The resulting type after dereferencing.

impl JniType for DownloadManager_Request

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.