Share via


CallLog.Calls.ExtraCallTypeFilter Field

Definition

An optional extra used with #CONTENT_TYPE Calls.CONTENT_TYPE and Intent#ACTION_VIEW to specify that the presented list of calls should be filtered for a particular call type.

[Android.Runtime.Register("EXTRA_CALL_TYPE_FILTER")]
public const string ExtraCallTypeFilter;
[<Android.Runtime.Register("EXTRA_CALL_TYPE_FILTER")>]
val mutable ExtraCallTypeFilter : string

Field Value

Attributes

Remarks

An optional extra used with #CONTENT_TYPE Calls.CONTENT_TYPE and Intent#ACTION_VIEW to specify that the presented list of calls should be filtered for a particular call type.

Applications implementing a call log UI should check for this extra, and display a filtered list of calls based on the specified call type. If not applicable within the application's UI, it should be silently ignored.

The following example brings up the call log, showing only missed calls.

Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setType(CallLog.Calls.CONTENT_TYPE);
            intent.putExtra(CallLog.Calls.EXTRA_CALL_TYPE_FILTER, CallLog.Calls.MISSED_TYPE);
            startActivity(intent);

</p>

Java documentation for android.provider.CallLog.Calls.EXTRA_CALL_TYPE_FILTER.

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.

Applies to