[]Struct jni_android_sys::android::printservice::PrinterDiscoverySession

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

public class PrinterDiscoverySession

Required feature: "android-printservice-PrinterDiscoverySession"

Methods

impl PrinterDiscoverySession

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

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

getPrinters

Required features: "java-util-List"

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

addPrinters

Required features: "java-util-List"

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

removePrinters

Required features: "java-util-List"

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

onStartPrinterDiscovery

Required features: "java-util-List"

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

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

onValidatePrinters

Required features: "java-util-List"

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

onStartPrinterStateTracking

Required features: "android-print-PrinterId"

pub fn onRequestCustomPrinterIcon<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PrinterId>>,
    arg1: impl Into<Option<&'env CancellationSignal>>,
    arg2: impl Into<Option<&'env CustomPrinterIconCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]

onRequestCustomPrinterIcon

Required features: "android-os-CancellationSignal", "android-print-PrinterId", "android-printservice-CustomPrinterIconCallback"

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

onStopPrinterStateTracking

Required features: "android-print-PrinterId"

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

getTrackedPrinters

Required features: "java-util-List"

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

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

pub fn isPrinterDiscoveryStarted<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[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 PrinterDiscoverySession

impl AsValidJObjectAndEnv for PrinterDiscoverySession

impl Deref for PrinterDiscoverySession

type Target = Object

The resulting type after dereferencing.

impl JniType for PrinterDiscoverySession

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.