AdaptySDK
AdaptySDK.AdaptyCustomAsset Class Reference

Base class for custom assets that can be used in Adapty UI. More...

Inheritance diagram for AdaptySDK.AdaptyCustomAsset:
AdaptySDK.AdaptyCustomAssetColor AdaptySDK.AdaptyCustomAssetLinearGradient AdaptySDK.AdaptyCustomAssetLocalImageAsset AdaptySDK.AdaptyCustomAssetLocalImageData AdaptySDK.AdaptyCustomAssetLocalImageFile AdaptySDK.AdaptyCustomAssetLocalVideoAsset AdaptySDK.AdaptyCustomAssetLocalVideoFile

Static Public Member Functions

static AdaptyCustomAsset LocalImageData (byte[] data)
 Creates a custom asset from local image data.
static AdaptyCustomAsset LocalImageAsset (string assetId)
 Creates a custom asset from a local image asset ID.
static AdaptyCustomAsset LocalImageFile (string path)
 Creates a custom asset from a local image file path.
static AdaptyCustomAsset LocalVideoAsset (string assetId)
 Creates a custom asset from a local video asset ID.
static AdaptyCustomAsset LocalVideoFile (string path)
 Creates a custom asset from a local video file path.
static AdaptyCustomAsset Color (Color color)
 Creates a custom asset from a Unity Color.
static AdaptyCustomAsset LinearGradient (Gradient gradient)
 Creates a custom asset from a Unity Gradient.

Package Functions

JSONNode ToJSONNode ()

Detailed Description

Base class for custom assets that can be used in Adapty UI.

Member Function Documentation

◆ Color()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.Color ( Color color)
static

Creates a custom asset from a Unity Color.

Parameters
colorThe Unity Color.
Returns
A custom asset representing the color.

◆ LinearGradient()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LinearGradient ( Gradient gradient)
static

Creates a custom asset from a Unity Gradient.

Parameters
gradientThe Unity Gradient.
Returns
A custom asset representing the linear gradient.

◆ LocalImageAsset()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LocalImageAsset ( string assetId)
static

Creates a custom asset from a local image asset ID.

Parameters
assetIdThe asset ID of the image.
Returns
A custom asset representing the image asset.

◆ LocalImageData()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LocalImageData ( byte[] data)
static

Creates a custom asset from local image data.

Parameters
dataThe image data as byte array.
Returns
A custom asset representing the image data.

◆ LocalImageFile()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LocalImageFile ( string path)
static

Creates a custom asset from a local image file path.

Parameters
pathThe file path to the image.
Returns
A custom asset representing the image file.

◆ LocalVideoAsset()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LocalVideoAsset ( string assetId)
static

Creates a custom asset from a local video asset ID.

Parameters
assetIdThe asset ID of the video.
Returns
A custom asset representing the video asset.

◆ LocalVideoFile()

AdaptyCustomAsset AdaptySDK.AdaptyCustomAsset.LocalVideoFile ( string path)
static

Creates a custom asset from a local video file path.

Parameters
pathThe file path to the video.
Returns
A custom asset representing the video file.

◆ ToJSONNode()

JSONNode AdaptySDK.AdaptyCustomAsset.ToJSONNode ( )
abstractpackage

The documentation for this class was generated from the following files: