-
Notifications
You must be signed in to change notification settings - Fork 2
/
ISharedPreferences.xml
541 lines (540 loc) · 39.4 KB
/
ISharedPreferences.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
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
<Type Name="ISharedPreferences" FullName="Android.Content.ISharedPreferences">
<TypeSignature Language="C#" Value="public interface ISharedPreferences : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ISharedPreferences implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Content.ISharedPreferences" />
<TypeSignature Language="F#" Value="type ISharedPreferences = interface
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/content/SharedPreferences", "", "Android.Content.ISharedPreferencesInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/SharedPreferences", "", "Android.Content.ISharedPreferencesInvoker")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>Interface for accessing and modifying preference data returned by <c>Context#getSharedPreferences</c>.</summary>
<remarks>
<para>Interface for accessing and modifying preference data returned by <c>Context#getSharedPreferences</c>. For any particular set of preferences,
there is a single instance of this class that all clients share.
Modifications to the preferences must go through an <c>Editor</c> object
to ensure the preference values remain in a consistent state and control
when they are committed to storage. Objects that are returned from the
various <c>get</c> methods must be treated as immutable by the application.</para>
<para>Note: This class provides strong consistency guarantees. It is using expensive operations
which might slow down an app. Frequently changing properties or properties where loss can be
tolerated should use other mechanisms. For more details read the comments on
<c>Editor#commit()</c> and <c>Editor#apply()</c>.</para>
<para><em>Note: This class does not support use across multiple processes.</em>
<div class="special reference">
<h3>Developer Guides</h3></para>
<para>For more information about using SharedPreferences, read the
<see href="https://developer.android.com/guide/topics/data/data-storage.html#pref">Data Storage</see>
developer guide.</para>
<para></div></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences</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>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName="All">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IDictionary<string,object>? All { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<string, object> All" />
<MemberSignature Language="DocId" Value="P:Android.Content.ISharedPreferences.All" />
<MemberSignature Language="F#" Value="member this.All : System.Collections.Generic.IDictionary<string, obj>" Usage="Android.Content.ISharedPreferences.All" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAll", "()Ljava/util/Map;", "GetGetAllHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAll", "()Ljava/util/Map;", "GetGetAllHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IDictionary<System.String,System.Object></ReturnType>
</ReturnValue>
<Docs>
<summary>Retrieve all values from the preferences.</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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException" />
</Docs>
</Member>
<Member MemberName="Contains">
<MemberSignature Language="C#" Value="public bool Contains (string? key);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Contains(string key) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.Contains(System.String)" />
<MemberSignature Language="F#" Value="abstract member Contains : string -> bool" Usage="iSharedPreferences.Contains key" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("contains", "(Ljava/lang/String;)Z", "GetContains_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("contains", "(Ljava/lang/String;)Z", "GetContains_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
</Parameters>
<Docs>
<param name="key">The name of the preference to check.</param>
<summary>Checks whether the preferences contains a preference.</summary>
<returns>Returns true if the preference exists in the preferences,
otherwise false.</returns>
<remarks>
<para>Checks whether the preferences contains a preference.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#contains(java.lang.String)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.contains(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>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Edit">
<MemberSignature Language="C#" Value="public Android.Content.ISharedPreferencesEditor? Edit ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Content.ISharedPreferencesEditor Edit() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.Edit" />
<MemberSignature Language="F#" Value="abstract member Edit : unit -> Android.Content.ISharedPreferencesEditor" Usage="iSharedPreferences.Edit " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("edit", "()Landroid/content/SharedPreferences$Editor;", "GetEditHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("edit", "()Landroid/content/SharedPreferences$Editor;", "GetEditHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.ISharedPreferencesEditor</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Create a new Editor for these preferences, through which you can make
modifications to the data in the preferences and atomically commit those
changes back to the SharedPreferences object.</summary>
<returns>Returns a new instance of the <c>Editor</c> interface, allowing
you to modify the values in this SharedPreferences object.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#edit()" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.edit()</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>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="GetBoolean">
<MemberSignature Language="C#" Value="public bool GetBoolean (string? key, bool defValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool GetBoolean(string key, bool defValue) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetBoolean(System.String,System.Boolean)" />
<MemberSignature Language="F#" Value="abstract member GetBoolean : string * bool -> bool" Usage="iSharedPreferences.GetBoolean (key, defValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "GetGetBoolean_Ljava_lang_String_ZHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "GetGetBoolean_Ljava_lang_String_ZHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValue" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValue">Value to return if this preference does not exist.</param>
<summary>Retrieve a boolean value from the preferences.</summary>
<returns>Returns the preference value if it exists, or defValue. Throws
ClassCastException if there is a preference with this name that is not
a boolean.</returns>
<remarks>
<para>Retrieve a boolean value from the preferences.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getBoolean(java.lang.String,%20boolean)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getBoolean(java.lang.String, boolean)</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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException" />
</Docs>
</Member>
<Member MemberName="GetFloat">
<MemberSignature Language="C#" Value="public float GetFloat (string? key, float defValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance float32 GetFloat(string key, float32 defValue) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetFloat(System.String,System.Single)" />
<MemberSignature Language="F#" Value="abstract member GetFloat : string * single -> single" Usage="iSharedPreferences.GetFloat (key, defValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getFloat", "(Ljava/lang/String;F)F", "GetGetFloat_Ljava_lang_String_FHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getFloat", "(Ljava/lang/String;F)F", "GetGetFloat_Ljava_lang_String_FHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValue" Type="System.Single" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValue">Value to return if this preference does not exist.</param>
<summary>Retrieve a float value from the preferences.</summary>
<returns>Returns the preference value if it exists, or defValue. Throws
ClassCastException if there is a preference with this name that is not
a float.</returns>
<remarks>
<para>Retrieve a float value from the preferences.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getFloat(java.lang.String,%20float)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getFloat(java.lang.String, float)</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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException" />
</Docs>
</Member>
<Member MemberName="GetInt">
<MemberSignature Language="C#" Value="public int GetInt (string? key, int defValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 GetInt(string key, int32 defValue) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetInt(System.String,System.Int32)" />
<MemberSignature Language="F#" Value="abstract member GetInt : string * int -> int" Usage="iSharedPreferences.GetInt (key, defValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getInt", "(Ljava/lang/String;I)I", "GetGetInt_Ljava_lang_String_IHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getInt", "(Ljava/lang/String;I)I", "GetGetInt_Ljava_lang_String_IHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValue" Type="System.Int32" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValue">Value to return if this preference does not exist.</param>
<summary>Retrieve an int value from the preferences.</summary>
<returns>Returns the preference value if it exists, or defValue. Throws
ClassCastException if there is a preference with this name that is not
an int.</returns>
<remarks>
<para>Retrieve an int value from the preferences.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getInt(java.lang.String,%20int)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getInt(java.lang.String, int)</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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException" />
</Docs>
</Member>
<Member MemberName="GetLong">
<MemberSignature Language="C#" Value="public long GetLong (string? key, long defValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int64 GetLong(string key, int64 defValue) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetLong(System.String,System.Int64)" />
<MemberSignature Language="F#" Value="abstract member GetLong : string * int64 -> int64" Usage="iSharedPreferences.GetLong (key, defValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getLong", "(Ljava/lang/String;J)J", "GetGetLong_Ljava_lang_String_JHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getLong", "(Ljava/lang/String;J)J", "GetGetLong_Ljava_lang_String_JHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValue" Type="System.Int64" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValue">Value to return if this preference does not exist.</param>
<summary>Retrieve a long value from the preferences.</summary>
<returns>Returns the preference value if it exists, or defValue. Throws
ClassCastException if there is a preference with this name that is not
a long.</returns>
<remarks>
<para>Retrieve a long value from the preferences.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getLong(java.lang.String,%20long)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getLong(java.lang.String, long)</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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException" />
</Docs>
</Member>
<Member MemberName="GetString">
<MemberSignature Language="C#" Value="public string? GetString (string? key, string? defValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string GetString(string key, string defValue) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetString(System.String,System.String)" />
<MemberSignature Language="F#" Value="abstract member GetString : string * string -> string" Usage="iSharedPreferences.GetString (key, defValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValue" Type="System.String" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValue">Value to return if this preference does not exist.</param>
<summary>Retrieve a String value from the preferences.</summary>
<returns>Returns the preference value if it exists, or defValue. Throws
ClassCastException if there is a preference with this name that is not
a String.</returns>
<remarks>
<para>Retrieve a String value from the preferences.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getString(java.lang.String,%20java.lang.String)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getString(java.lang.String, 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>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException" />
</Docs>
</Member>
<Member MemberName="GetStringSet">
<MemberSignature Language="C#" Value="public System.Collections.Generic.ICollection<string>? GetStringSet (string? key, System.Collections.Generic.ICollection<string>? defValues);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.ICollection`1<string> GetStringSet(string key, class System.Collections.Generic.ICollection`1<string> defValues) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.GetStringSet(System.String,System.Collections.Generic.ICollection{System.String})" />
<MemberSignature Language="F#" Value="abstract member GetStringSet : string * System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>" Usage="iSharedPreferences.GetStringSet (key, defValues)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.ICollection<System.String></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.String" />
<Parameter Name="defValues" Type="System.Collections.Generic.ICollection<System.String>" />
</Parameters>
<Docs>
<param name="key">The name of the preference to retrieve.</param>
<param name="defValues">Values to return if this preference does not exist.</param>
<summary>Retrieve a set of String values from the preferences.</summary>
<returns>Returns the preference values if they exist, or defValues.
Throws ClassCastException if there is a preference with this name
that is not a Set.</returns>
<remarks>
<para>Retrieve a set of String values from the preferences.</para>
<para>Note that you <em>must not</em> modify the set instance returned
by this call. The consistency of the stored data is not guaranteed
if you do, nor is your ability to modify the instance at all.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#getStringSet(java.lang.String,%20java.util.Set%3Cjava.lang.String%3E)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.getStringSet(java.lang.String, java.util.Set<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="RegisterOnSharedPreferenceChangeListener">
<MemberSignature Language="C#" Value="public void RegisterOnSharedPreferenceChangeListener (Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener? listener);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void RegisterOnSharedPreferenceChangeListener(class Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener listener) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.RegisterOnSharedPreferenceChangeListener(Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener)" />
<MemberSignature Language="F#" Value="abstract member RegisterOnSharedPreferenceChangeListener : Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener -> unit" Usage="iSharedPreferences.RegisterOnSharedPreferenceChangeListener listener" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("registerOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetRegisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("registerOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetRegisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="listener" Type="Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener" />
</Parameters>
<Docs>
<param name="listener">The callback that will run.</param>
<summary>Registers a callback to be invoked when a change happens to a preference.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#registerOnSharedPreferenceChangeListener(android.content.OnSharedPreferenceChangeListener)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.registerOnSharedPreferenceChangeListener(android.content.OnSharedPreferenceChangeListener)</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>
<since version="Added in API level 1" />
<altmember cref="M:Android.Content.ISharedPreferences.UnregisterOnSharedPreferenceChangeListener(Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener)" />
</Docs>
</Member>
<Member MemberName="UnregisterOnSharedPreferenceChangeListener">
<MemberSignature Language="C#" Value="public void UnregisterOnSharedPreferenceChangeListener (Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener? listener);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void UnregisterOnSharedPreferenceChangeListener(class Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener listener) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.ISharedPreferences.UnregisterOnSharedPreferenceChangeListener(Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener)" />
<MemberSignature Language="F#" Value="abstract member UnregisterOnSharedPreferenceChangeListener : Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener -> unit" Usage="iSharedPreferences.UnregisterOnSharedPreferenceChangeListener listener" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("unregisterOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetUnregisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("unregisterOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetUnregisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="listener" Type="Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener" />
</Parameters>
<Docs>
<param name="listener">The callback that should be unregistered.</param>
<summary>Unregisters a previous callback.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/SharedPreferences#unregisterOnSharedPreferenceChangeListener(android.content.OnSharedPreferenceChangeListener)" title="Reference documentation">Java documentation for <code>android.content.SharedPreferences.unregisterOnSharedPreferenceChangeListener(android.content.OnSharedPreferenceChangeListener)</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>
<since version="Added in API level 1" />
<altmember cref="M:Android.Content.ISharedPreferences.RegisterOnSharedPreferenceChangeListener(Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener)" />
</Docs>
</Member>
</Members>
</Type>