Sdílet prostřednictvím


CallLog.Calls.BlockReason Field

Definition

Where the CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE, indicates the reason why a call is blocked.

[Android.Runtime.Register("BLOCK_REASON", ApiSince=29)]
public const string BlockReason;
[<Android.Runtime.Register("BLOCK_REASON", ApiSince=29)>]
val mutable BlockReason : string

Field Value

Attributes

Remarks

Where the CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE, indicates the reason why a call is blocked.

Type: INTEGER

Allowed values: <ul> <li>CallLog.Calls#BLOCK_REASON_NOT_BLOCKED</li> <li>CallLog.Calls#BLOCK_REASON_CALL_SCREENING_SERVICE</li> <li>CallLog.Calls#BLOCK_REASON_DIRECT_TO_VOICEMAIL</li> <li>CallLog.Calls#BLOCK_REASON_BLOCKED_NUMBER</li> <li>CallLog.Calls#BLOCK_REASON_UNKNOWN_NUMBER</li> <li>CallLog.Calls#BLOCK_REASON_RESTRICTED_NUMBER</li> <li>CallLog.Calls#BLOCK_REASON_PAY_PHONE</li> <li>CallLog.Calls#BLOCK_REASON_NOT_IN_CONTACTS</li> </ul>

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

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