Sdílet prostřednictvím


SipAudioCall Class

Definition

Handles an Internet audio call over SIP.

[Android.Runtime.Register("android/net/sip/SipAudioCall", DoNotGenerateAcw=true)]
public class SipAudioCall : Java.Lang.Object
[<Android.Runtime.Register("android/net/sip/SipAudioCall", DoNotGenerateAcw=true)>]
type SipAudioCall = class
    inherit Object
Inheritance
SipAudioCall
Attributes

Remarks

Handles an Internet audio call over SIP. You can instantiate this class with SipManager, using SipManager#makeAudioCall makeAudioCall() and SipManager#takeAudioCall takeAudioCall().

<p class="note"><strong>Note:</strong> Using this class require the android.Manifest.permission#INTERNET and android.Manifest.permission#USE_SIP permissions. In addition, #startAudio requires the android.Manifest.permission#RECORD_AUDIO, android.Manifest.permission#ACCESS_WIFI_STATE, and android.Manifest.permission#WAKE_LOCK permissions; and #setSpeakerMode setSpeakerMode() requires the android.Manifest.permission#MODIFY_AUDIO_SETTINGS permission.</p>

<div class="special reference"> <h3>Developer Guides</h3>

For more information about using SIP, read the Session Initiation Protocol developer guide.

</div>

This member is deprecated. android.net.sip.SipManager and associated classes are no longer supported and should not be used as the basis of future VOIP apps.

Java documentation for android.net.sip.SipAudioCall.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

SipAudioCall(Context, SipProfile)

Creates a call object with the local SIP profile.

SipAudioCall(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsInCall

Checks if the call is established.

IsMuted

Checks if the call is muted.

IsOnHold

Checks if the call is on hold.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LocalProfile

Gets the local SIP profile.

PeerProfile

Gets the peer's SIP profile.

PeerReference (Inherited from Object)
State

Gets the state of the SipSession that carries this call.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AnswerCall(Int32)

Answers a call.

AttachCall(SipSession, String)

Attaches an incoming call to this call object.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Closes this object.

ContinueCall(Int32)

Continues a call that's on hold.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
EndCall()

Ends a call.

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
HoldCall(Int32)

Puts a call on hold.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
MakeCall(SipProfile, SipSession, Int32)

Initiates an audio call to the specified profile.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SendDtmf(Int32, Message)

Sends a DTMF code.

SendDtmf(Int32)

Sends a DTMF code.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetListener(SipAudioCall+Listener, Boolean)

Sets the listener to listen to the audio call events.

SetListener(SipAudioCall+Listener)

Sets the listener to listen to the audio call events.

SetSpeakerMode(Boolean)

Puts the device to speaker mode.

StartAudio()

Starts the audio for the established call.

ToArray<T>() (Inherited from Object)
ToggleMute()

Toggles mute.

ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to