Class NativeCameraPreview
Inheritance
System.Object
NativeCameraPreview
Implements
TextureView.ISurfaceTextureListener
Android.Views.View.IOnLayoutChangeListener
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class NativeCameraPreview : Java.Lang.Object, TextureView.ISurfaceTextureListener, Android.Views.View.IOnLayoutChangeListener
Constructors
NativeCameraPreview(Context, INativeCameraPreviewEvent)
Declaration
public NativeCameraPreview(Context context, INativeCameraPreviewEvent eventDelegate)
Parameters
Properties
Context
Declaration
public Context Context { get; }
Property Value
Muted
Declaration
public bool Muted { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
View
Declaration
public Android.Views.View View { get; }
Property Value
| Type |
Description |
| Android.Views.View |
|
Methods
OnLayoutChange(Android.Views.View, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public void OnLayoutChange(Android.Views.View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
Parameters
| Type |
Name |
Description |
| Android.Views.View |
v |
|
| System.Int32 |
left |
|
| System.Int32 |
top |
|
| System.Int32 |
right |
|
| System.Int32 |
bottom |
|
| System.Int32 |
oldLeft |
|
| System.Int32 |
oldTop |
|
| System.Int32 |
oldRight |
|
| System.Int32 |
oldBottom |
|
OnSurfaceTextureAvailable(SurfaceTexture, Int32, Int32)
Declaration
public void OnSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)
Parameters
| Type |
Name |
Description |
| SurfaceTexture |
surface |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
OnSurfaceTextureDestroyed(SurfaceTexture)
Declaration
public bool OnSurfaceTextureDestroyed(SurfaceTexture surface)
Parameters
| Type |
Name |
Description |
| SurfaceTexture |
surface |
|
Returns
| Type |
Description |
| System.Boolean |
|
OnSurfaceTextureSizeChanged(SurfaceTexture, Int32, Int32)
Declaration
public void OnSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height)
Parameters
| Type |
Name |
Description |
| SurfaceTexture |
surface |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
OnSurfaceTextureUpdated(SurfaceTexture)
Declaration
public void OnSurfaceTextureUpdated(SurfaceTexture surface)
Parameters
| Type |
Name |
Description |
| SurfaceTexture |
surface |
|
SetCamera(Android.Hardware.Camera)
Declaration
public void SetCamera(Android.Hardware.Camera camera)
Parameters
| Type |
Name |
Description |
| Android.Hardware.Camera |
camera |
|
SetCamera(NativeCamera2Source)
Declaration
public void SetCamera(NativeCamera2Source camera)
Parameters
SetCameraRotation(Int32)
Declaration
public void SetCameraRotation(int cameraRotation)
Parameters
| Type |
Name |
Description |
| System.Int32 |
cameraRotation |
|
StartPreview(SurfaceTexture)
Declaration
protected void StartPreview(SurfaceTexture surface)
Parameters
| Type |
Name |
Description |
| SurfaceTexture |
surface |
|
StopPreview()
Declaration
protected void StopPreview()
UpdateSurfaceSize()
Declaration
public void UpdateSurfaceSize()
Implements
TextureView.ISurfaceTextureListener
Android.Views.View.IOnLayoutChangeListener