Share via


PreferenceManager.GetDefaultSharedPreferencesName(Context) Method

Definition

Returns the name used for storing default shared preferences.

[Android.Runtime.Register("getDefaultSharedPreferencesName", "(Landroid/content/Context;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetDefaultSharedPreferencesName (Android.Content.Context? context);
[<Android.Runtime.Register("getDefaultSharedPreferencesName", "(Landroid/content/Context;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetDefaultSharedPreferencesName : Android.Content.Context -> string

Parameters

context
Context

Returns

Attributes

Remarks

Returns the name used for storing default shared preferences.

Java documentation for android.preference.PreferenceManager.getDefaultSharedPreferencesName(android.content.Context).

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