[]Struct jni_android_sys::android::content::ContentResolver

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

public class ContentResolver

Required feature: android-content-ContentResolver

Methods

impl ContentResolver

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

Required features: "android-content-Context"

pub fn get_type<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, String>>>
[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>>>
[src]

canonicalize

Required features: "android-net-Uri"

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

refresh

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

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

openInputStream

Required features: "android-net-Uri", "java-io-InputStream"

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

openOutputStream

Required features: "android-net-Uri", "java-io-OutputStream"

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

openOutputStream

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

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

openFileDescriptor

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

pub fn open_file_descriptor_uri_string_cancellation_signal<'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>>>
[src]

openFileDescriptor

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

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

openAssetFileDescriptor

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

pub fn open_asset_file_descriptor_uri_string_cancellation_signal<'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>>>
[src]

openAssetFileDescriptor

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

pub fn open_typed_asset_file_descriptor_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>>>
[src]

openTypedAssetFileDescriptor

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

pub fn open_typed_asset_file_descriptor_uri_string_bundle_cancellation_signal<'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>>>
[src]

openTypedAssetFileDescriptor

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

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

insert

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

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

call

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

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

acquireContentProviderClient

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

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

acquireContentProviderClient

Required features: "android-content-ContentProviderClient", "java-lang-String"

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

acquireUnstableContentProviderClient

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

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

acquireUnstableContentProviderClient

Required features: "android-content-ContentProviderClient", "java-lang-String"

pub fn register_content_observer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: bool,
    arg2: impl Into<Option<&'env ContentObserver>>
) -> Result<()>
[src]

registerContentObserver

Required features: "android-database-ContentObserver", "android-net-Uri"

pub fn unregister_content_observer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ContentObserver>>
) -> Result<()>
[src]

unregisterContentObserver

Required features: "android-database-ContentObserver"

pub fn notify_change_uri_content_observer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ContentObserver>>
) -> Result<()>
[src]

notifyChange

Required features: "android-database-ContentObserver", "android-net-Uri"

pub fn notify_change_uri_content_observer_boolean<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ContentObserver>>,
    arg2: bool
) -> Result<()>
[src]

notifyChange

Required features: "android-database-ContentObserver", "android-net-Uri"

pub fn notify_change_uri_content_observer_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env ContentObserver>>,
    arg2: i32
) -> Result<()>
[src]

notifyChange

Required features: "android-database-ContentObserver", "android-net-Uri"

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

takePersistableUriPermission

Required features: "android-net-Uri"

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

releasePersistableUriPermission

Required features: "android-net-Uri"

pub fn get_persisted_uri_permissions<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>>
[src]

getPersistedUriPermissions

Required features: "java-util-List"

pub fn get_outgoing_persisted_uri_permissions<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>>
[src]

getOutgoingPersistedUriPermissions

Required features: "java-util-List"

pub fn start_sync<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

Deprecated

startSync

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

pub fn request_sync_account_string_bundle<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

requestSync

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

pub fn request_sync_sync_request<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SyncRequest>>
) -> Result<()>
[src]

requestSync

Required features: "android-content-SyncRequest"

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

validateSyncExtrasBundle

Required features: "android-os-Bundle"

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

Deprecated

cancelSync

Required features: "android-net-Uri"

pub fn cancel_sync_account_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<()>
[src]

cancelSync

Required features: "android-accounts-Account", "java-lang-String"

pub fn get_sync_automatically<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool>
[src]

getSyncAutomatically

Required features: "android-accounts-Account", "java-lang-String"

pub fn set_sync_automatically<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: bool
) -> Result<()>
[src]

setSyncAutomatically

Required features: "android-accounts-Account", "java-lang-String"

pub fn add_periodic_sync<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Bundle>>,
    arg3: i64
) -> Result<()>
[src]

addPeriodicSync

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

pub fn remove_periodic_sync<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

removePeriodicSync

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

pub fn cancel_sync_sync_request<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SyncRequest>>
) -> Result<()>
[src]

cancelSync

Required features: "android-content-SyncRequest"

pub fn get_periodic_syncs<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, List>>>
[src]

getPeriodicSyncs

Required features: "android-accounts-Account", "java-lang-String", "java-util-List"

pub fn get_is_syncable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<i32>
[src]

getIsSyncable

Required features: "android-accounts-Account", "java-lang-String"

pub fn set_is_syncable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32
) -> Result<()>
[src]

setIsSyncable

Required features: "android-accounts-Account", "java-lang-String"

pub fn get_master_sync_automatically<'env>(__jni_env: &'env Env) -> Result<bool>[src]

pub fn set_master_sync_automatically<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<()>
[src]

pub fn is_sync_active<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool>
[src]

isSyncActive

Required features: "android-accounts-Account", "java-lang-String"

pub fn get_current_sync<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, SyncInfo>>>
[src]

Deprecated

getCurrentSync

Required features: "android-content-SyncInfo"

pub fn get_current_syncs<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, List>>>
[src]

getCurrentSyncs

Required features: "java-util-List"

pub fn is_sync_pending<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Account>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool>
[src]

isSyncPending

Required features: "android-accounts-Account", "java-lang-String"

pub fn add_status_change_listener<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env SyncStatusObserver>>
) -> Result<Option<Local<'env, Object>>>
[src]

addStatusChangeListener

Required features: "android-content-SyncStatusObserver", "java-lang-Object"

pub fn remove_status_change_listener<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

removeStatusChangeListener

Required features: "java-lang-Object"

pub const ANY_CURSOR_ITEM_TYPE: &'static str[src]

public static final ANY_CURSOR_ITEM_TYPE

pub const CURSOR_DIR_BASE_TYPE: &'static str[src]

public static final CURSOR_DIR_BASE_TYPE

pub const CURSOR_ITEM_BASE_TYPE: &'static str[src]

public static final CURSOR_ITEM_BASE_TYPE

pub const EXTRA_HONORED_ARGS: &'static str[src]

public static final EXTRA_HONORED_ARGS

pub const EXTRA_REFRESH_SUPPORTED: &'static str[src]

public static final EXTRA_REFRESH_SUPPORTED

pub const EXTRA_SIZE: &'static str[src]

public static final EXTRA_SIZE

pub const EXTRA_TOTAL_COUNT: &'static str[src]

public static final EXTRA_TOTAL_COUNT

pub const NOTIFY_SKIP_NOTIFY_FOR_DESCENDANTS: i32[src]

pub const NOTIFY_SYNC_TO_NETWORK: i32[src]

public static final NOTIFY_SYNC_TO_NETWORK

pub const QUERY_ARG_LIMIT: &'static str[src]

public static final QUERY_ARG_LIMIT

pub const QUERY_ARG_OFFSET: &'static str[src]

public static final QUERY_ARG_OFFSET

pub const QUERY_ARG_SORT_COLLATION: &'static str[src]

public static final QUERY_ARG_SORT_COLLATION

pub const QUERY_ARG_SORT_COLUMNS: &'static str[src]

public static final QUERY_ARG_SORT_COLUMNS

pub const QUERY_ARG_SORT_DIRECTION: &'static str[src]

public static final QUERY_ARG_SORT_DIRECTION

pub const QUERY_ARG_SQL_SELECTION: &'static str[src]

public static final QUERY_ARG_SQL_SELECTION

pub const QUERY_ARG_SQL_SELECTION_ARGS: &'static str[src]

public static final QUERY_ARG_SQL_SELECTION_ARGS

pub const QUERY_ARG_SQL_SORT_ORDER: &'static str[src]

public static final QUERY_ARG_SQL_SORT_ORDER

pub const QUERY_SORT_DIRECTION_ASCENDING: i32[src]

public static final QUERY_SORT_DIRECTION_ASCENDING

pub const QUERY_SORT_DIRECTION_DESCENDING: i32[src]

public static final QUERY_SORT_DIRECTION_DESCENDING

pub const SCHEME_ANDROID_RESOURCE: &'static str[src]

public static final SCHEME_ANDROID_RESOURCE

pub const SCHEME_CONTENT: &'static str[src]

public static final SCHEME_CONTENT

pub const SCHEME_FILE: &'static str[src]

public static final SCHEME_FILE

pub const SYNC_EXTRAS_ACCOUNT: &'static str[src]

Deprecated

public static final SYNC_EXTRAS_ACCOUNT

pub const SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS: &'static str[src]

pub const SYNC_EXTRAS_DO_NOT_RETRY: &'static str[src]

public static final SYNC_EXTRAS_DO_NOT_RETRY

pub const SYNC_EXTRAS_EXPEDITED: &'static str[src]

public static final SYNC_EXTRAS_EXPEDITED

pub const SYNC_EXTRAS_FORCE: &'static str[src]

Deprecated

public static final SYNC_EXTRAS_FORCE

pub const SYNC_EXTRAS_IGNORE_BACKOFF: &'static str[src]

public static final SYNC_EXTRAS_IGNORE_BACKOFF

pub const SYNC_EXTRAS_IGNORE_SETTINGS: &'static str[src]

public static final SYNC_EXTRAS_IGNORE_SETTINGS

pub const SYNC_EXTRAS_INITIALIZE: &'static str[src]

public static final SYNC_EXTRAS_INITIALIZE

pub const SYNC_EXTRAS_MANUAL: &'static str[src]

public static final SYNC_EXTRAS_MANUAL

pub const SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS: &'static str[src]

pub const SYNC_EXTRAS_REQUIRE_CHARGING: &'static str[src]

public static final SYNC_EXTRAS_REQUIRE_CHARGING

pub const SYNC_EXTRAS_UPLOAD: &'static str[src]

public static final SYNC_EXTRAS_UPLOAD

pub const SYNC_OBSERVER_TYPE_ACTIVE: i32[src]

public static final SYNC_OBSERVER_TYPE_ACTIVE

pub const SYNC_OBSERVER_TYPE_PENDING: i32[src]

public static final SYNC_OBSERVER_TYPE_PENDING

pub const SYNC_OBSERVER_TYPE_SETTINGS: i32[src]

public static final SYNC_OBSERVER_TYPE_SETTINGS

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl Deref for ContentResolver

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for ContentResolver

impl AsJValue for ContentResolver

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]