-
Notifications
You must be signed in to change notification settings - Fork 1
/
BlockedNumberContract.xml
484 lines (483 loc) · 32 KB
/
BlockedNumberContract.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
<Type Name="BlockedNumberContract" FullName="Android.Provider.BlockedNumberContract">
<TypeSignature Language="C#" Value="public class BlockedNumberContract : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit BlockedNumberContract extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Android.Provider.BlockedNumberContract" />
<TypeSignature Language="F#" Value="type BlockedNumberContract = class
 inherit Object" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/provider/BlockedNumberContract", ApiSince=24, DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/provider/BlockedNumberContract", ApiSince=24, DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>The contract between the blockednumber provider and applications.</summary>
<remarks>
<para>The contract between the blockednumber provider and applications. Contains definitions for
the supported URIs and columns.</para>
<para><h3> Overview </h3></para>
<para>The content provider exposes a table containing blocked numbers. The columns and URIs for
accessing this table are defined by the <c>BlockedNumbers</c> class. Messages, and calls from
blocked numbers are discarded by the platform. Notifications upon provider changes can be
received using a <c>android.database.ContentObserver</c>.</para>
<para>The platform will not block messages, and calls from emergency numbers as defined by
<c>android.telephony.PhoneNumberUtils#isEmergencyNumber(String)</c>. If the user contacts
emergency services, number blocking is disabled by the platform for a duration defined by
<c>android.telephony.CarrierConfigManager#KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT</c>.</para>
<para><h3> Permissions </h3></para>
<para>Only the system, the default SMS application, and the default phone app
(See <c>android.telecom.TelecomManager#getDefaultDialerPackage()</c>), and carrier apps
(See <c>android.service.carrier.CarrierService</c>) can read, and write to the blockednumber
provider. However, <c>#canCurrentUserBlockNumbers(Context)</c> can be accessed by any
application.</para>
<para><h3> Data </h3></para>
<para>Other than regular phone numbers, the blocked number provider can also store addresses (such
as email) from which a user can receive messages, and calls. The blocked numbers are stored
in the <c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> column. A normalized version of phone
numbers (if normalization is possible) is stored in <c>BlockedNumbers#COLUMN_E164_NUMBER</c>
column. The platform blocks calls, and messages from an address if it is present in in the
<c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> column or if the E164 version of the address
matches the <c>BlockedNumbers#COLUMN_E164_NUMBER</c> column.</para>
<para><h3> Operations </h3>
<dl>
<dt><b>Insert</b></dt>
<dd></para>
<para>
<c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> is a required column that needs to be populated.
Apps can optionally provide the <c>BlockedNumbers#COLUMN_E164_NUMBER</c> which is the phone
number's E164 representation. The provider automatically populates this column if the app does
not provide it. Note that this column is not populated if normalization fails or if the address
is not a phone number (eg: email).</para>
<para>Attempting to insert an existing blocked number (same
<c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> column) will result in replacing the existing
blocked number.</para>
<para>Examples:</para>
<code lang="text/java">ContentValues values = new ContentValues();
values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1234567890");
Uri uri = getContentResolver().insert(BlockedNumbers.CONTENT_URI, values);
</code>
<code lang="text/java">ContentValues values = new ContentValues();
values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1234567890");
values.put(BlockedNumbers.COLUMN_E164_NUMBER, "+11234567890");
Uri uri = getContentResolver().insert(BlockedNumbers.CONTENT_URI, values);
</code>
<code lang="text/java">ContentValues values = new ContentValues();
values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "12345@abdcde.com");
Uri uri = getContentResolver().insert(BlockedNumbers.CONTENT_URI, values);
</code>
<para></p>
</dd>
<dt><b>Update</b></dt>
<dd></para>
<para>Updates are not supported. Use Delete, and Insert instead.</para>
<para></dd>
<dt><b>Delete</b></dt>
<dd></para>
<para>Deletions can be performed as follows:</para>
<code lang="text/java">ContentValues values = new ContentValues();
values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1234567890");
Uri uri = getContentResolver().insert(BlockedNumbers.CONTENT_URI, values);
getContentResolver().delete(uri, null, null);
</code>
<para>To check if a particular number is blocked, use the method
<c>#isBlocked(Context, String)</c>.
</p>
</dd>
<dt><b>Query</b></dt>
<dd></para>
<para>All blocked numbers can be enumerated as follows:</para>
<code lang="text/java">Cursor c = getContentResolver().query(BlockedNumbers.CONTENT_URI,
new String[]{BlockedNumbers.COLUMN_ID, BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
BlockedNumbers.COLUMN_E164_NUMBER}, null, null, null);
</code>
<para></p>
</dd>
<dt><b>Unblock</b></dt>
<dd></para>
<para>Use the method <c>#unblock(Context, String)</c> to unblock numbers.</para>
<para></dd>
<h3> Multi-user </h3></para>
<para>Apps must use the method <c>#canCurrentUserBlockNumbers(Context)</c> before performing any
operation on the blocked number provider. If <c>#canCurrentUserBlockNumbers(Context)</c> returns
<c>false</c>, all operations on the provider will fail with a <c>SecurityException</c>. The
platform will block calls, and messages from numbers in the provider independent of the current
user.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected BlockedNumberContract (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Provider.BlockedNumberContract.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.Provider.BlockedNumberContract : nativeint * Android.Runtime.JniHandleOwnership -> Android.Provider.BlockedNumberContract" Usage="new Android.Provider.BlockedNumberContract (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">To be added.</param>
<param name="transfer">To be added.</param>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Authority">
<MemberSignature Language="C#" Value="public const string Authority;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string Authority" />
<MemberSignature Language="DocId" Value="F:Android.Provider.BlockedNumberContract.Authority" />
<MemberSignature Language="F#" Value="val mutable Authority : string" Usage="Android.Provider.BlockedNumberContract.Authority" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AUTHORITY", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AUTHORITY", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>The authority for the blocked number provider</summary>
<remarks>
<para>The authority for the blocked number provider</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract#AUTHORITY" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract.AUTHORITY</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AuthorityUri">
<MemberSignature Language="C#" Value="public static Android.Net.Uri? AuthorityUri { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Android.Net.Uri AuthorityUri" />
<MemberSignature Language="DocId" Value="P:Android.Provider.BlockedNumberContract.AuthorityUri" />
<MemberSignature Language="F#" Value="static member AuthorityUri : Android.Net.Uri" Usage="Android.Provider.BlockedNumberContract.AuthorityUri" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AUTHORITY_URI", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AUTHORITY_URI", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Net.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>A content:// style uri to the authority for the blocked number provider</summary>
<value>To be added.</value>
<remarks>
<para>A content:// style uri to the authority for the blocked number provider</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract#AUTHORITY_URI" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract.AUTHORITY_URI</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CanCurrentUserBlockNumbers">
<MemberSignature Language="C#" Value="public static bool CanCurrentUserBlockNumbers (Android.Content.Context? context);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool CanCurrentUserBlockNumbers(class Android.Content.Context context) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Provider.BlockedNumberContract.CanCurrentUserBlockNumbers(Android.Content.Context)" />
<MemberSignature Language="F#" Value="static member CanCurrentUserBlockNumbers : Android.Content.Context -> bool" Usage="Android.Provider.BlockedNumberContract.CanCurrentUserBlockNumbers context" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canCurrentUserBlockNumbers", "(Landroid/content/Context;)Z", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canCurrentUserBlockNumbers", "(Landroid/content/Context;)Z", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="Android.Content.Context" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<summary>Checks if blocking numbers is supported for the current user.</summary>
<returns>
<c>true</c> if the current user can block numbers.</returns>
<remarks>
<para>Checks if blocking numbers is supported for the current user.</para>
<para>Typically, blocking numbers is only supported for one user at a time.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract#canCurrentUserBlockNumbers(android.content.Context)" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract.canCurrentUserBlockNumbers(android.content.Context)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="IsBlocked">
<MemberSignature Language="C#" Value="public static bool IsBlocked (Android.Content.Context? context, string? phoneNumber);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool IsBlocked(class Android.Content.Context context, string phoneNumber) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Provider.BlockedNumberContract.IsBlocked(Android.Content.Context,System.String)" />
<MemberSignature Language="F#" Value="static member IsBlocked : Android.Content.Context * string -> bool" Usage="Android.Provider.BlockedNumberContract.IsBlocked (context, phoneNumber)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("isBlocked", "(Landroid/content/Context;Ljava/lang/String;)Z", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("isBlocked", "(Landroid/content/Context;Ljava/lang/String;)Z", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="Android.Content.Context" />
<Parameter Name="phoneNumber" Type="System.String" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<param name="phoneNumber">To be added.</param>
<summary>Returns whether a given number is in the blocked list.</summary>
<returns>
<c>true</c> if the <c>phoneNumber</c> is blocked.</returns>
<remarks>
<para>Returns whether a given number is in the blocked list.</para>
<para>This matches the <c>phoneNumber</c> against the
<c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> column, and the E164 representation of the
<c>phoneNumber</c> with the <c>BlockedNumbers#COLUMN_E164_NUMBER</c> column.</para>
<para>Note that if the <c>#canCurrentUserBlockNumbers</c> is <c>false</c> for the user
context <c>context</c>, this method will throw a <c>SecurityException</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract#isBlocked(android.content.Context,%20java.lang.String)" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract.isBlocked(android.content.Context, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Android.Provider.BlockedNumberContract.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.Provider.BlockedNumberContract.JniPeerMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdClass">
<MemberSignature Language="C#" Value="protected override IntPtr ThresholdClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ThresholdClass" />
<MemberSignature Language="DocId" Value="P:Android.Provider.BlockedNumberContract.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Android.Provider.BlockedNumberContract.ThresholdClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdType">
<MemberSignature Language="C#" Value="protected override Type ThresholdType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type ThresholdType" />
<MemberSignature Language="DocId" Value="P:Android.Provider.BlockedNumberContract.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Android.Provider.BlockedNumberContract.ThresholdType" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Unblock">
<MemberSignature Language="C#" Value="public static int Unblock (Android.Content.Context? context, string? phoneNumber);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Unblock(class Android.Content.Context context, string phoneNumber) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Provider.BlockedNumberContract.Unblock(Android.Content.Context,System.String)" />
<MemberSignature Language="F#" Value="static member Unblock : Android.Content.Context * string -> int" Usage="Android.Provider.BlockedNumberContract.Unblock (context, phoneNumber)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("unblock", "(Landroid/content/Context;Ljava/lang/String;)I", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("unblock", "(Landroid/content/Context;Ljava/lang/String;)I", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="Android.Content.Context" />
<Parameter Name="phoneNumber" Type="System.String" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<param name="phoneNumber">To be added.</param>
<summary>Unblocks the <c>phoneNumber</c> if it is blocked.</summary>
<returns>the number of rows deleted in the blocked number provider as a result of unblock.</returns>
<remarks>
<para>Unblocks the <c>phoneNumber</c> if it is blocked.</para>
<para>This deletes all rows where the <c>phoneNumber</c> matches the
<c>BlockedNumbers#COLUMN_ORIGINAL_NUMBER</c> column or the E164 representation of the
<c>phoneNumber</c> matches the <c>BlockedNumbers#COLUMN_E164_NUMBER</c> column.</para>
<para>To delete rows based on exact match with specific columns such as
<c>BlockedNumbers#COLUMN_ID</c> use
<c>android.content.ContentProvider#delete(Uri, String, String[])</c> with
<c>BlockedNumbers#CONTENT_URI</c> URI.</para>
<para>Note that if the <c>#canCurrentUserBlockNumbers</c> is <c>false</c> for the user
context <c>context</c>, this method will throw a <c>SecurityException</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/provider/BlockedNumberContract#unblock(android.content.Context,%20java.lang.String)" title="Reference documentation">Java documentation for <code>android.provider.BlockedNumberContract.unblock(android.content.Context, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
</Members>
</Type>