IAttachedSurfaceControl.CreateMirror 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.
Creates a mirrored SurfaceControl of the root SurfaceControl hierarchy.
[Android.Runtime.Register("createMirror", "()Landroid/view/SurfaceControl;", "GetCreateMirrorHandler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public virtual Android.Views.SurfaceControl CreateMirror();
[<Android.Runtime.Register("createMirror", "()Landroid/view/SurfaceControl;", "GetCreateMirrorHandler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member CreateMirror : unit -> Android.Views.SurfaceControl
override this.CreateMirror : unit -> Android.Views.SurfaceControl
Returns
a mirrored SurfaceControl of the root SurfaceControl.
- Attributes
Remarks
Creates a mirrored SurfaceControl of the root SurfaceControl hierarchy.
The returned SurfaceControl acts as a new root for the mirrored content, and its properties can be manipulated independently from the original surface. Transformations applied to this returned SurfaceControl will affect the mirrored content, but will not affect the original.
The returned SurfaceControl will be invalid if the mirror creation failed. Caller is responsible to call SurfaceControl.release() for the mirror after usage.
Real Hierarchy Mirror
SC (value that's returned)
|
A A'
| |
B B'
In the diagram above, A is the root SurfaceControl of this AttachedSurfaceControl. A' is a mirror of A. B is a child of A and B' is a mirror of B. The returned value, SC, is a new SurfaceControl that is the parent of the mirrored hierarchy.
Android reference for android.view.AttachedSurfaceControl.createMirror.
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.