Share via


SurfaceControlViewHost.SurfacePackage.NotifyConfigurationChanged Method

Definition

Forward a configuration to the remote SurfaceControlViewHost.

[Android.Runtime.Register("notifyConfigurationChanged", "(Landroid/content/res/Configuration;)V", "", ApiSince=33)]
public void NotifyConfigurationChanged (Android.Content.Res.Configuration c);
[<Android.Runtime.Register("notifyConfigurationChanged", "(Landroid/content/res/Configuration;)V", "", ApiSince=33)>]
member this.NotifyConfigurationChanged : Android.Content.Res.Configuration -> unit

Parameters

c
Configuration

The configuration to forward

Attributes

Remarks

Forward a configuration to the remote SurfaceControlViewHost. This will cause View#onConfigurationChanged to be invoked on the remote end. This does not automatically cause the SurfaceControlViewHost to be resized. The root View of a SurfaceControlViewHost is more akin to a PopupWindow in that the size is user specified independent of configuration width and height.

In order to receive the configuration change via View#onConfigurationChanged, the context used with the SurfaceControlViewHost and it's embedded view hierarchy must be a WindowContext obtained from Context#createWindowContext.

If a regular service context is used, then your embedded view hierarchy will always perceive the global configuration.

Java documentation for android.view.SurfaceControlViewHost.SurfacePackage.notifyConfigurationChanged(android.content.res.Configuration).

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