[]Struct jni_android_sys::android::content::ContentProvider

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

public class ContentProvider

Required feature: "android-content-ContentProvider"

Methods

impl ContentProvider

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

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

getContext

Required features: "android-content-Context"

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

getCallingPackage

Required features: "java-lang-String"

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

getReadPermission

Required features: "java-lang-String"

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

getWritePermission

Required features: "java-lang-String"

pub fn getPathPermissions<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<PathPermission, Throwable>>>, Local<'env, Throwable>>
[src]

getPathPermissions

Required features: "android-content-pm-PathPermission"

pub fn onCreate<'env>(&'env self) -> Result<bool, 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 query_Uri_String_array_String_String_array_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "android-net-Uri", "java-lang-String"

pub fn query_Uri_String_array_String_String_array_String_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>,
    arg5: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "android-net-Uri", "android-os-CancellationSignal", "java-lang-String"

pub fn query_Uri_String_array_Bundle_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env Bundle>>,
    arg3: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "android-net-Uri", "android-os-Bundle", "android-os-CancellationSignal", "java-lang-String"

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

getType

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

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

canonicalize

Required features: "android-net-Uri"

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

uncanonicalize

Required features: "android-net-Uri"

pub fn refresh<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env CancellationSignal>>
) -> Result<bool, Local<'env, Throwable>>
[src]

refresh

Required features: "android-net-Uri", "android-os-Bundle", "android-os-CancellationSignal"

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

insert

Required features: "android-content-ContentValues", "android-net-Uri"

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

bulkInsert

Required features: "android-content-ContentValues", "android-net-Uri"

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

delete

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

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

update

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

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

openFile

Required features: "android-net-Uri", "android-os-ParcelFileDescriptor", "java-lang-String"

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

openFile

Required features: "android-net-Uri", "android-os-CancellationSignal", "android-os-ParcelFileDescriptor", "java-lang-String"

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

openAssetFile

Required features: "android-content-res-AssetFileDescriptor", "android-net-Uri", "java-lang-String"

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

openAssetFile

Required features: "android-content-res-AssetFileDescriptor", "android-net-Uri", "android-os-CancellationSignal", "java-lang-String"

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

getStreamTypes

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

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

openTypedAssetFile

Required features: "android-content-res-AssetFileDescriptor", "android-net-Uri", "android-os-Bundle", "java-lang-String"

pub fn openTypedAssetFile_Uri_String_Bundle_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Bundle>>,
    arg3: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, AssetFileDescriptor>>, Local<'env, Throwable>>
[src]

openTypedAssetFile

Required features: "android-content-res-AssetFileDescriptor", "android-net-Uri", "android-os-Bundle", "android-os-CancellationSignal", "java-lang-String"

pub fn openPipeHelper<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Bundle>>,
    arg3: impl Into<Option<&'env Object>>,
    arg4: impl Into<Option<&'env ContentProvider_PipeDataWriter>>
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
[src]

openPipeHelper

Required features: "android-content-ContentProvider_PipeDataWriter", "android-net-Uri", "android-os-Bundle", "android-os-ParcelFileDescriptor", "java-lang-Object", "java-lang-String"

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

attachInfo

Required features: "android-content-Context", "android-content-pm-ProviderInfo"

pub fn applyBatch<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ArrayList>>
) -> Result<Option<Local<'env, ObjectArray<ContentProviderResult, Throwable>>>, Local<'env, Throwable>>
[src]

applyBatch

Required features: "android-content-ContentProviderResult", "java-util-ArrayList"

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

call

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

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

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

dump

Required features: "java-io-FileDescriptor", "java-io-PrintWriter", "java-lang-String"

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 ContentProvider

impl AsRef<ComponentCallbacks2> for ContentProvider

impl AsValidJObjectAndEnv for ContentProvider

impl Deref for ContentProvider

type Target = Object

The resulting type after dereferencing.

impl JniType for ContentProvider

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.