DeviceResources
Wisej.Hybrid.DeviceResources
Last updated
Wisej.Hybrid.DeviceResources
Last updated
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Provides methods for accessing resources embedded within the Hybrid client application.
Access this class through the Device singleton.
Initializes a new instance of DeviceResources.
Gets a byte array of the given resource if it exists.
Parameter | Type | Description |
---|---|---|
Returns: Byte[]. The resource byte array.
A HybridAsset: /Assets/image.png can be accessed using "image.png" if only one HybridAsset named "image.png" exists or "/Assets/image.png".
Gets a stream of the given resource if it exists.
Returns: MemoryStream. The resource stream.
Parameter | Type | Description |
---|---|---|
resource
The name of the resource or relative path from the project root.
resource
The name of the resource or relative path from the project root.