[−]Struct jni_android_sys::android::app::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Uri>>
) -> Result<Local<'env, DownloadManager_Request>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
setDestinationInExternalPublicDir
Required features: "android-app-DownloadManager_Request", "java-lang-String"
pub fn allowScanningByMediaScanner<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setNotificationVisibility<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setAllowedNetworkTypes<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setAllowedOverRoaming<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setAllowedOverMetered<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setRequiresCharging<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setRequiresDeviceIdle<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
Required features: "android-app-DownloadManager_Request"
pub fn setVisibleInDownloadsUi<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, DownloadManager_Request>>, Local<'env, Throwable>>
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]
public static final VISIBILITY_VISIBLE_NOTIFY_COMPLETED
pub const VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION: i32
[src]
public static final VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for DownloadManager_Request
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for DownloadManager_Request
impl !Send for DownloadManager_Request
impl !Sync for DownloadManager_Request
impl Unpin for DownloadManager_Request
impl UnwindSafe for DownloadManager_Request
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>,