[]Struct jni_android_sys::android::telecom::Connection

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

public class Connection

Required feature: "android-telecom-Connection"

Methods

impl Connection

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

pub fn capabilitiesToString<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

capabilitiesToString

Required features: "java-lang-String"

pub fn propertiesToString<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

propertiesToString

Required features: "java-lang-String"

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

getAddress

Required features: "android-net-Uri"

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

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

getCallerDisplayName

Required features: "java-lang-String"

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

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

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

getCallAudioState

Required features: "android-telecom-CallAudioState"

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

getConference

Required features: "android-telecom-Conference"

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

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

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

getStatusHints

Required features: "android-telecom-StatusHints"

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

getExtras

Required features: "android-os-Bundle"

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

getDisconnectCause

Required features: "android-telecom-DisconnectCause"

pub fn stateToString<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

stateToString

Required features: "java-lang-String"

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

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

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

setAddress

Required features: "android-net-Uri"

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

setCallerDisplayName

Required features: "java-lang-String"

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

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

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

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

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

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

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

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

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

setVideoProvider

Required features: "android-telecom-Connection_VideoProvider"

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

getVideoProvider

Required features: "android-telecom-Connection_VideoProvider"

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

setDisconnected

Required features: "android-telecom-DisconnectCause"

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

setPostDialWait

Required features: "java-lang-String"

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

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

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

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

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

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

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

setStatusHints

Required features: "android-telecom-StatusHints"

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

setConferenceableConnections

Required features: "java-util-List"

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

setConferenceables

Required features: "java-util-List"

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

getConferenceables

Required features: "java-util-List"

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

setExtras

Required features: "android-os-Bundle"

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

putExtras

Required features: "android-os-Bundle"

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

removeExtras

Required features: "java-util-List"

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

removeExtras

Required features: "java-lang-String"

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

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

requestBluetoothAudio

Required features: "android-bluetooth-BluetoothDevice"

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

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

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

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

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

onCallAudioStateChanged

Required features: "android-telecom-CallAudioState"

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

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

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

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

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

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

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

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

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

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

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

onDeflect

Required features: "android-net-Uri"

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

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

onReject

Required features: "java-lang-String"

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

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

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

onCallEvent

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

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

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

onExtrasChanged

Required features: "android-os-Bundle"

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

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

onStartRtt

Required features: "android-telecom-Connection_RttTextStream"

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

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

handleRttUpgradeResponse

Required features: "android-telecom-Connection_RttTextStream"

pub fn createFailedConnection<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisconnectCause>>
) -> Result<Option<Local<'env, Connection>>, Local<'env, Throwable>>
[src]

createFailedConnection

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

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

createCanceledConnection

Required features: "android-telecom-Connection"

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

sendConnectionEvent

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

pub const CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO: i32[src]

pub const CAPABILITY_CAN_PAUSE_VIDEO: i32[src]

public static final CAPABILITY_CAN_PAUSE_VIDEO

pub const CAPABILITY_CAN_PULL_CALL: i32[src]

public static final CAPABILITY_CAN_PULL_CALL

pub const CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION: i32[src]

pub const CAPABILITY_CAN_UPGRADE_TO_VIDEO: i32[src]

public static final CAPABILITY_CAN_UPGRADE_TO_VIDEO

pub const CAPABILITY_DISCONNECT_FROM_CONFERENCE: i32[src]

pub const CAPABILITY_HOLD: i32[src]

public static final CAPABILITY_HOLD

pub const CAPABILITY_MANAGE_CONFERENCE: i32[src]

public static final CAPABILITY_MANAGE_CONFERENCE

pub const CAPABILITY_MERGE_CONFERENCE: i32[src]

public static final CAPABILITY_MERGE_CONFERENCE

pub const CAPABILITY_MUTE: i32[src]

public static final CAPABILITY_MUTE

pub const CAPABILITY_RESPOND_VIA_TEXT: i32[src]

public static final CAPABILITY_RESPOND_VIA_TEXT

pub const CAPABILITY_SEPARATE_FROM_CONFERENCE: i32[src]

pub const CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL: i32[src]

pub const CAPABILITY_SUPPORTS_VT_LOCAL_RX: i32[src]

public static final CAPABILITY_SUPPORTS_VT_LOCAL_RX

pub const CAPABILITY_SUPPORTS_VT_LOCAL_TX: i32[src]

public static final CAPABILITY_SUPPORTS_VT_LOCAL_TX

pub const CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL: i32[src]

pub const CAPABILITY_SUPPORTS_VT_REMOTE_RX: i32[src]

pub const CAPABILITY_SUPPORTS_VT_REMOTE_TX: i32[src]

pub const CAPABILITY_SUPPORT_DEFLECT: i32[src]

public static final CAPABILITY_SUPPORT_DEFLECT

pub const CAPABILITY_SUPPORT_HOLD: i32[src]

public static final CAPABILITY_SUPPORT_HOLD

pub const CAPABILITY_SWAP_CONFERENCE: i32[src]

public static final CAPABILITY_SWAP_CONFERENCE

pub const EVENT_CALL_MERGE_FAILED: &'static str[src]

public static final EVENT_CALL_MERGE_FAILED

pub const EVENT_CALL_PULL_FAILED: &'static str[src]

public static final EVENT_CALL_PULL_FAILED

pub const EXTRA_ANSWERING_DROPS_FG_CALL: &'static str[src]

public static final EXTRA_ANSWERING_DROPS_FG_CALL

pub const EXTRA_ANSWERING_DROPS_FG_CALL_APP_NAME: &'static str[src]

pub const EXTRA_CALL_SUBJECT: &'static str[src]

public static final EXTRA_CALL_SUBJECT

pub const EXTRA_CHILD_ADDRESS: &'static str[src]

public static final EXTRA_CHILD_ADDRESS

pub const EXTRA_LAST_FORWARDED_NUMBER: &'static str[src]

public static final EXTRA_LAST_FORWARDED_NUMBER

pub const PROPERTY_HAS_CDMA_VOICE_PRIVACY: i32[src]

public static final PROPERTY_HAS_CDMA_VOICE_PRIVACY

pub const PROPERTY_IS_EXTERNAL_CALL: i32[src]

public static final PROPERTY_IS_EXTERNAL_CALL

pub const PROPERTY_IS_RTT: i32[src]

public static final PROPERTY_IS_RTT

pub const PROPERTY_SELF_MANAGED: i32[src]

public static final PROPERTY_SELF_MANAGED

pub const STATE_ACTIVE: i32[src]

public static final STATE_ACTIVE

pub const STATE_DIALING: i32[src]

public static final STATE_DIALING

pub const STATE_DISCONNECTED: i32[src]

public static final STATE_DISCONNECTED

pub const STATE_HOLDING: i32[src]

public static final STATE_HOLDING

pub const STATE_INITIALIZING: i32[src]

public static final STATE_INITIALIZING

pub const STATE_NEW: i32[src]

public static final STATE_NEW

pub const STATE_PULLING_CALL: i32[src]

public static final STATE_PULLING_CALL

pub const STATE_RINGING: i32[src]

public static final STATE_RINGING

Trait Implementations

impl AsJValue for Connection

impl AsValidJObjectAndEnv for Connection

impl Deref for Connection

type Target = Conferenceable

The resulting type after dereferencing.

impl JniType for Connection

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.