C# Class DroidKaigi2016Xamarin.Droid.Utils.PrefUtil

显示文件 Open project: amay077/DroidKaigi2016Xamarin Class Usage Examples

Public Properties

Property Type Description
KEY_CURRENT_LANGUAGE_ID string

Public Methods

Method Description
Contains ( Android.Content.Context context, string name ) : bool
Get ( Android.Content.Context context, string name, string defaultValue ) : string
GetPref ( Android.Content.Context context ) : ISharedPreferences
Put ( Android.Content.Context context, string name, bool value ) : void
Put ( Android.Content.Context context, string name, string value ) : void
Remove ( Android.Content.Context context, string name ) : void

Method Details

Contains() public static method

public static Contains ( Android.Content.Context context, string name ) : bool
context Android.Content.Context
name string
return bool

Get() public static method

public static Get ( Android.Content.Context context, string name, string defaultValue ) : string
context Android.Content.Context
name string
defaultValue string
return string

GetPref() public static method

public static GetPref ( Android.Content.Context context ) : ISharedPreferences
context Android.Content.Context
return ISharedPreferences

Put() public static method

public static Put ( Android.Content.Context context, string name, bool value ) : void
context Android.Content.Context
name string
value bool
return void

Put() public static method

public static Put ( Android.Content.Context context, string name, string value ) : void
context Android.Content.Context
name string
value string
return void

Remove() public static method

public static Remove ( Android.Content.Context context, string name ) : void
context Android.Content.Context
name string
return void

Property Details

KEY_CURRENT_LANGUAGE_ID public_oe static_oe property

public static string KEY_CURRENT_LANGUAGE_ID
return string