GrammaticalInflectionManager.SetRequestedApplicationGrammaticalGender Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
int: the terms of address the user preferred in an application. Value is one of the following: Configuration.GRAMMATICAL_GENDER_NOT_SPECIFIED Configuration.GRAMMATICAL_GENDER_NEUTRAL Configuration.GRAMMATICAL_GENDER_FEMININE Configuration.GRAMMATICAL_GENDER_MASCULINE
- Attributes
Remarks
Sets the current grammatical gender for the calling app (keyed by package name and user ID retrieved from the calling pid). Note: 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.`
See also:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
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.