GrammaticalInflectionManager.SetRequestedApplicationGrammaticalGender Method

Definition

Sets the current grammatical gender for the calling app (keyed by package name and user ID retrieved from the calling pid).

[Android.Runtime.Register("setRequestedApplicationGrammaticalGender", "(I)V", "GetSetRequestedApplicationGrammaticalGender_IHandler", ApiSince=34)]
public virtual void SetRequestedApplicationGrammaticalGender (Android.Content.Res.GrammaticalGender grammaticalGender);
[<Android.Runtime.Register("setRequestedApplicationGrammaticalGender", "(I)V", "GetSetRequestedApplicationGrammaticalGender_IHandler", ApiSince=34)>]
abstract member SetRequestedApplicationGrammaticalGender : Android.Content.Res.GrammaticalGender -> unit
override this.SetRequestedApplicationGrammaticalGender : Android.Content.Res.GrammaticalGender -> unit

Parameters

grammaticalGender
GrammaticalGender

the terms of address the user preferred in an application.

Attributes

Remarks

Sets the current grammatical gender for the calling app (keyed by package name and user ID retrieved from the calling pid).

<b>Note:</b> Changes to app grammatical gender will result in a configuration change (and potentially an Activity re-creation) being applied to the specified application. For more information, see the section on handling configuration changes. The set grammatical gender are persisted across application restarts; they are backed up if the user has enabled Backup & Restore.`

Java documentation for android.app.GrammaticalInflectionManager.setRequestedApplicationGrammaticalGender(int).

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