共用方式為


Activity.ChangingConfigurations Property

Definition

If this activity is being destroyed because it can not handle a configuration parameter being changed (and thus its #onConfigurationChanged(Configuration) method is <em>not</em> being called), then you can use this method to discover the set of changes that have occurred while in the process of being destroyed.

public virtual Android.Content.PM.ConfigChanges ChangingConfigurations { [Android.Runtime.Register("getChangingConfigurations", "()I", "GetGetChangingConfigurationsHandler")] get; }
[<get: Android.Runtime.Register("getChangingConfigurations", "()I", "GetGetChangingConfigurationsHandler")>]
member this.ChangingConfigurations : Android.Content.PM.ConfigChanges

Property Value

Returns a bit field of the configuration parameters that are changing, as defined by the android.content.res.Configuration class.

Attributes

Remarks

If this activity is being destroyed because it can not handle a configuration parameter being changed (and thus its #onConfigurationChanged(Configuration) method is <em>not</em> being called), then you can use this method to discover the set of changes that have occurred while in the process of being destroyed. Note that there is no guarantee that these will be accurate (other changes could have happened at any time), so you should only use this as an optimization hint.

Java documentation for android.app.Activity.getChangingConfigurations().

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