Class NativeCameraPreview
Inheritance
System.Object
Java.Lang.Object
NativeCameraPreview
Implements
Android.Views.TextureView.ISurfaceTextureListener
Android.Views.View.IOnLayoutChangeListener
Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable
Inherited Members
Java.Lang.Object.Java.Interop.IJavaPeerable.DisposeUnlessReferenced()
Java.Lang.Object.Java.Interop.IJavaPeerable.Disposed()
Java.Lang.Object.Java.Interop.IJavaPeerable.Finalized()
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniIdentityHashCode(System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniManagedPeerState(Java.Interop.JniManagedPeerStates)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetPeerReference(Java.Interop.JniObjectReference)
Java.Lang.Object.Dispose()
Java.Lang.Object.Dispose(System.Boolean)
Java.Lang.Object.GetObject<T>(System.IntPtr, System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.GetObject<T>(System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.FromArray<T>(T[])
Java.Lang.Object.Clone()
Java.Lang.Object.Equals(Java.Lang.Object)
Java.Lang.Object.JavaFinalize()
Java.Lang.Object.GetHashCode()
Java.Lang.Object.Notify()
Java.Lang.Object.NotifyAll()
Java.Lang.Object.ToString()
Java.Lang.Object.Wait()
Java.Lang.Object.Wait(System.Int64)
Java.Lang.Object.Wait(System.Int64, System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.JniManagedPeerState
Java.Lang.Object.Class
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class NativeCameraPreview : Object, IJavaObjectEx, TextureView.ISurfaceTextureListener, View.IOnLayoutChangeListener, IJavaObject, IJavaPeerable, IDisposable
Constructors
NativeCameraPreview(Context, INativeCameraPreviewEvent)
Declaration
public NativeCameraPreview(Context context, INativeCameraPreviewEvent eventDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Content.Context | context | |
| INativeCameraPreviewEvent | eventDelegate |
Properties
Context
Declaration
public Context Context { get; }
Property Value
| Type | Description |
|---|---|
| Android.Content.Context |
Muted
Declaration
public bool Muted { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
View
Declaration
public View View { get; }
Property Value
| Type | Description |
|---|---|
| Android.Views.View |
Methods
OnLayoutChange(View, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public void OnLayoutChange(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 |
|---|---|---|
| Android.Graphics.SurfaceTexture | surface | |
| System.Int32 | width | |
| System.Int32 | height |
OnSurfaceTextureDestroyed(SurfaceTexture)
Declaration
public bool OnSurfaceTextureDestroyed(SurfaceTexture surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Graphics.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 |
|---|---|---|
| Android.Graphics.SurfaceTexture | surface | |
| System.Int32 | width | |
| System.Int32 | height |
OnSurfaceTextureUpdated(SurfaceTexture)
Declaration
public void OnSurfaceTextureUpdated(SurfaceTexture surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Graphics.SurfaceTexture | surface |
SetCamera(Camera)
Declaration
public void SetCamera(Camera camera)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Hardware.Camera | camera |
SetCamera(NativeCamera2Source)
Declaration
public void SetCamera(NativeCamera2Source camera)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeCamera2Source | camera |
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 |
|---|---|---|
| Android.Graphics.SurfaceTexture | surface |
StopPreview()
Declaration
protected void StopPreview()
UpdateSurfaceSize()
Declaration
public void UpdateSurfaceSize()
Implements
Android.Views.TextureView.ISurfaceTextureListener
Android.Views.View.IOnLayoutChangeListener
Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable