DeviceMedia
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides properties and methods to interact with device media.
- C#
- VB.NET
public class DeviceMedia
Public Class DeviceMedia
Access this class through the Device singleton.
Constructors
DeviceMedia()
Initializes a new instance of DeviceMedia.
Properties
CaptureSupported
Boolean: Gets whether capturing media is supported on the device.
Methods
CapturePhoto(quality)
Takes a photo using the device's camera.
| Parameter | Type | Description |
|---|---|---|
| quality | Double |
Returns: Byte[]. The photo from the device.
CaptureVideo(quality)
Takes a video using the device's camera.
| Parameter | Type | Description |
|---|---|---|
| quality | Double |
Returns: Byte[]. The video stream.
PickPhoto(quality)
Picks a photo from the device's library.
| Parameter | Type | Description |
|---|---|---|
| quality | Double |
Returns: Image. The photo.
PickVideo(quality)
Picks a video from the device.
| Parameter | Type | Description |
|---|---|---|
| quality | Double |
Returns: Byte[]. The device stream.