C# Class DroidKaigi2016Xamarin.Droid.Utils.AppUtil

显示文件 Open project: amay077/DroidKaigi2016Xamarin

Public Properties

Property Type Description
SUPPORT_LANG string[]

Public Methods

Method Description
GetCurrentLanguage ( Android.Content.Context context ) : String
GetCurrentLanguageId ( Android.Content.Context context ) : string
GetCurrentLocale ( Android.Content.Context context ) : System.Locale
GetFacebookUrl ( string name ) : string
GetGitHubUrl ( string name ) : string
GetLanguage ( Android.Content.Context context, string languageId ) : string
GetString ( Android.Content.Context context, string resName ) : string
GetTwitterUrl ( string name ) : String
GetVersionName ( Android.Content.Context context ) : string
InitLocale ( Android.Content.Context context ) : void
Linkify ( Android.App.Activity activity, Android.Widget.TextView textView, string linkText, string url ) : void
SetLocale ( Android.Content.Context context, string languageId ) : void
ShowWebPage ( Android.App.Activity activity, string url ) : void

Method Details

GetCurrentLanguage() public static method

public static GetCurrentLanguage ( Android.Content.Context context ) : String
context Android.Content.Context
return String

GetCurrentLanguageId() public static method

public static GetCurrentLanguageId ( Android.Content.Context context ) : string
context Android.Content.Context
return string

GetCurrentLocale() public static method

public static GetCurrentLocale ( Android.Content.Context context ) : System.Locale
context Android.Content.Context
return System.Locale

GetFacebookUrl() public static method

public static GetFacebookUrl ( string name ) : string
name string
return string

GetGitHubUrl() public static method

public static GetGitHubUrl ( string name ) : string
name string
return string

GetLanguage() public static method

public static GetLanguage ( Android.Content.Context context, string languageId ) : string
context Android.Content.Context
languageId string
return string

GetString() public static method

public static GetString ( Android.Content.Context context, string resName ) : string
context Android.Content.Context
resName string
return string

GetTwitterUrl() public static method

public static GetTwitterUrl ( string name ) : String
name string
return String

GetVersionName() public static method

public static GetVersionName ( Android.Content.Context context ) : string
context Android.Content.Context
return string

InitLocale() public static method

public static InitLocale ( Android.Content.Context context ) : void
context Android.Content.Context
return void

Linkify() public static method

public static Linkify ( Android.App.Activity activity, Android.Widget.TextView textView, string linkText, string url ) : void
activity Android.App.Activity
textView Android.Widget.TextView
linkText string
url string
return void

SetLocale() public static method

public static SetLocale ( Android.Content.Context context, string languageId ) : void
context Android.Content.Context
languageId string
return void

ShowWebPage() public static method

public static ShowWebPage ( Android.App.Activity activity, string url ) : void
activity Android.App.Activity
url string
return void

Property Details

SUPPORT_LANG public_oe static_oe property

public static string[] SUPPORT_LANG
return string[]