Allows access to the Locale API.
Interface | Method |
---|---|
LocaleManagerObject | |
Locale | DOMString getLocale(); void setLocale(DOMString newLocale); void localeChanged(LocaleChangedCallback changeCallback); |
LocaleChangedCallback |
[NoInterfaceObject] interface LocaleManagerObject { readonly attribute Locale locale; };
Tizen implements Locale;
[NoInterfaceObject] interface Locale { DOMString getLocale(); void setLocale(DOMString newLocale); void localeChanged(LocaleChangedCallback changeCallback); };
DOMString getLocale();
Return value:
Current locale in ISO 639-2 format (i.e., en_US for English US).void setLocale(DOMString newLocale);
Parameters:
void localeChanged(LocaleChangedCallback changeCallback);
Parameters:
[Callback=FunctionOnly, NoInterfaceObject] interface LocaleChangedCallback { void onsuccess(DOMString newLocale); };
void onsuccess(DOMString newLocale);
Parameters:
module Locale { [NoInterfaceObject] interface LocaleManagerObject { readonly attribute Locale locale; }; Tizen implements Locale; [NoInterfaceObject] interface Locale { DOMString getLocale(); void setLocale(DOMString newLocale); void localeChanged(LocaleChangedCallback changeCallback); }; [Callback=FunctionOnly, NoInterfaceObject] interface LocaleChangedCallback { void onsuccess(DOMString newLocale); }; };