SurfaceControlViewHost.SurfacePackage.NotifyConfigurationChanged 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.
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
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.
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.