[]Struct jni_android_sys::android::telecom::ConnectionService

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

public class ConnectionService

Required feature: "android-telecom-ConnectionService"

Methods

impl ConnectionService

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

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

onUnbind

Required features: "android-content-Intent"

pub fn createRemoteIncomingConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, RemoteConnection>>, Local<'env, Throwable>>
[src]

createRemoteIncomingConnection

Required features: "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle", "android-telecom-RemoteConnection"

pub fn createRemoteOutgoingConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, RemoteConnection>>, Local<'env, Throwable>>
[src]

createRemoteOutgoingConnection

Required features: "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle", "android-telecom-RemoteConnection"

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

conferenceRemoteConnections

Required features: "android-telecom-RemoteConnection"

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

addConference

Required features: "android-telecom-Conference"

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

addExistingConnection

Required features: "android-telecom-Connection", "android-telecom-PhoneAccountHandle"

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

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

getAllConnections

Required features: "java-util-Collection"

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

getAllConferences

Required features: "java-util-Collection"

pub fn onCreateIncomingConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, Connection>>, Local<'env, Throwable>>
[src]

onCreateIncomingConnection

Required features: "android-telecom-Connection", "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

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

onCreateIncomingConnectionFailed

Required features: "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

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

onCreateOutgoingConnectionFailed

Required features: "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

pub fn onCreateOutgoingConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, Connection>>, Local<'env, Throwable>>
[src]

onCreateOutgoingConnection

Required features: "android-telecom-Connection", "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

pub fn onCreateOutgoingHandoverConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, Connection>>, Local<'env, Throwable>>
[src]

onCreateOutgoingHandoverConnection

Required features: "android-telecom-Connection", "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

pub fn onCreateIncomingHandoverConnection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PhoneAccountHandle>>,
    arg1: impl Into<Option<&'env ConnectionRequest>>
) -> Result<Option<Local<'env, Connection>>, Local<'env, Throwable>>
[src]

onCreateIncomingHandoverConnection

Required features: "android-telecom-Connection", "android-telecom-ConnectionRequest", "android-telecom-PhoneAccountHandle"

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

onHandoverFailed

Required features: "android-telecom-ConnectionRequest"

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

onConference

Required features: "android-telecom-Connection"

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

onRemoteConferenceAdded

Required features: "android-telecom-RemoteConference"

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

onRemoteExistingConnectionAdded

Required features: "android-telecom-RemoteConnection"

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

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

pub const SERVICE_INTERFACE: &'static str[src]

public static final SERVICE_INTERFACE

Methods from Deref<Target = Service>

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

getApplication

Required features: "android-app-Application"

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

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

Deprecated

onStart

Required features: "android-content-Intent"

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

onStartCommand

Required features: "android-content-Intent"

pub fn onDestroy<'env>(&'env self) -> Result<(), 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 onBind<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, IBinder>>, Local<'env, Throwable>>
[src]

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

onUnbind

Required features: "android-content-Intent"

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

onRebind

Required features: "android-content-Intent"

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

onTaskRemoved

Required features: "android-content-Intent"

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

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

pub fn stopSelfResult<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

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

startForeground

Required features: "android-app-Notification"

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

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

pub const START_CONTINUATION_MASK: i32[src]

pub const START_FLAG_REDELIVERY: i32[src]

pub const START_FLAG_RETRY: i32[src]

pub const START_NOT_STICKY: i32[src]

pub const START_REDELIVER_INTENT: i32[src]

pub const START_STICKY: i32[src]

pub const START_STICKY_COMPATIBILITY: i32[src]

pub const STOP_FOREGROUND_DETACH: i32[src]

pub const STOP_FOREGROUND_REMOVE: i32[src]

Trait Implementations

impl AsJValue for ConnectionService

impl AsValidJObjectAndEnv for ConnectionService

impl Deref for ConnectionService

type Target = Service

The resulting type after dereferencing.

impl JniType for ConnectionService

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.