Method NativeHandleValid
NativeHandleValid(int)
Method to be implemented by the provider to determine whether a native image handle is currently valid. An image can become invalid if it has been disposed.
Declaration
public virtual bool NativeHandleValid(int nativeHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| int | nativeHandle | A unique identifier for the camera image in question. |
Returns
| Type | Description |
|---|---|
| bool |
|
Remarks
If a handle is valid, TryConvert(int, ConversionParams, IntPtr, int) and TryGetConvertedDataSize(int, Vector2Int, TextureFormat, out int) should not fail.
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | Thrown if the implementation does not support camera image. |