Udostępnij za pośrednictwem


VoicemailContract Class

Definition

The contract between the voicemail provider and applications.

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

Remarks

The contract between the voicemail provider and applications. Contains definitions for the supported URIs and columns.

The content providers exposes two tables through this interface: <ul> <li> Voicemails table: This stores the actual voicemail records. The columns and URIs for accessing this table are defined by the Voicemails class. </li> <li> Status table: This provides a way for the voicemail source application to convey its current state to the system. The columns and URIS for accessing this table are defined by the Status class. </li> </ul>

The minimum permission needed to access this content provider is android.Manifest.permission#ADD_VOICEMAIL or carrier privileges (see android.telephony.TelephonyManager#hasCarrierPrivileges).

Voicemails are inserted by what is called as a "voicemail source" application, which is responsible for syncing voicemail data between a remote server and the local voicemail content provider. "voicemail source" application should always set the #PARAM_KEY_SOURCE_PACKAGE in the URI to identify its package.

In addition to the ContentObserver notifications the voicemail provider also generates broadcast intents to notify change for applications that are not active and therefore cannot listen to ContentObserver notifications. Broadcast intents with following actions are generated: <ul> <li> #ACTION_NEW_VOICEMAIL is generated for each new voicemail inserted. </li> <li> Intent#ACTION_PROVIDER_CHANGED is generated for any change made into the database, including new voicemail. </li> </ul>

Java documentation for android.provider.VoicemailContract.

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

VoicemailContract(IntPtr, JniHandleOwnership)

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

Fields

ActionFetchVoicemail

Broadcast intent to request a voicemail source to fetch voicemail content of a specific voicemail from the remote server.

ActionNewVoicemail

Broadcast intent when a new voicemail record is inserted.

ActionSyncVoicemail

Broadcast intent to request all voicemail sources to perform a sync with the remote server.

Authority

The authority used by the voicemail provider.

ExtraPhoneAccountHandle

Extra included in #ACTION_SYNC_VOICEMAIL broadcast intents to indicate which PhoneAccountHandle to sync.

ExtraSelfChange

Extra included in Intent#ACTION_PROVIDER_CHANGED broadcast intents to indicate if the receiving package made this change.

ParamKeySourcePackage

Parameter key used in the URI to specify the voicemail source package name.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
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

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
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)
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)
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)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
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