[]Struct jni_android_sys::android::app::backup::BackupAgentHelper

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

public class BackupAgentHelper

Required feature: "android-app-backup-BackupAgentHelper"

Methods

impl BackupAgentHelper

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

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

onBackup

Required features: "android-app-backup-BackupDataOutput", "android-os-ParcelFileDescriptor"

pub fn onRestore<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BackupDataInput>>,
    arg1: i32,
    arg2: impl Into<Option<&'env ParcelFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

onRestore

Required features: "android-app-backup-BackupDataInput", "android-os-ParcelFileDescriptor"

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

addHelper

Required features: "android-app-backup-BackupHelper", "java-lang-String"

Methods from Deref<Target = BackupAgent>

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

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

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

onBackup

Required features: "android-app-backup-BackupDataOutput", "android-os-ParcelFileDescriptor"

pub fn onRestore_BackupDataInput_int_ParcelFileDescriptor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BackupDataInput>>,
    arg1: i32,
    arg2: impl Into<Option<&'env ParcelFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

onRestore

Required features: "android-app-backup-BackupDataInput", "android-os-ParcelFileDescriptor"

pub fn onRestore_BackupDataInput_long_ParcelFileDescriptor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BackupDataInput>>,
    arg1: i64,
    arg2: impl Into<Option<&'env ParcelFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

onRestore

Required features: "android-app-backup-BackupDataInput", "android-os-ParcelFileDescriptor"

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

onFullBackup

Required features: "android-app-backup-FullBackupDataOutput"

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

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

fullBackupFile

Required features: "android-app-backup-FullBackupDataOutput", "java-io-File"

pub fn onRestoreFile<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ParcelFileDescriptor>>,
    arg1: i64,
    arg2: impl Into<Option<&'env File>>,
    arg3: i32,
    arg4: i64,
    arg5: i64
) -> Result<(), Local<'env, Throwable>>
[src]

onRestoreFile

Required features: "android-os-ParcelFileDescriptor", "java-io-File"

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

pub const FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED: i32[src]

pub const FLAG_DEVICE_TO_DEVICE_TRANSFER: i32[src]

pub const TYPE_DIRECTORY: i32[src]

pub const TYPE_FILE: i32[src]

Trait Implementations

impl AsJValue for BackupAgentHelper

impl AsValidJObjectAndEnv for BackupAgentHelper

impl Deref for BackupAgentHelper

type Target = BackupAgent

The resulting type after dereferencing.

impl JniType for BackupAgentHelper

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.