Package com.castlabs

# Class SimpleLicenseLoader

java.lang.Object
com.castlabs.SimpleLicenseLoader

All Implemented Interfaces:
  `LicenseLoader`

public class SimpleLicenseLoader extends Object implements LicenseLoader
Implementation of the `LicenseLoader` that will return license data as passed in the constructor.

Since:
  3.3.0
See Also:
  - `PlayerSDK.init(Context, LicenseLoader)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SimpleLicenseLoader(byte[] licenseData)`
  Creates a new instance of this license loader.
  `SimpleLicenseLoader(String licenseData)`
  Creates a new instance of this license loader.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `getLicenseData()`
  Returns the license data that was passed in the constructor.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SimpleLicenseLoader

    public SimpleLicenseLoader(@NonNull String licenseData)
    Creates a new instance of this license loader.
    Parameters:
      `licenseData` - The license data to be returned by this loader.

  - ### SimpleLicenseLoader

    public SimpleLicenseLoader(@NonNull byte[] licenseData)
    Creates a new instance of this license loader.
    Parameters:
      `licenseData` - The license data to be returned by this loader.

- ## Method Details

  - ### getLicenseData

    public byte[] getLicenseData() throws Exception
    Returns the license data that was passed in the constructor.
    Specified by:
      `getLicenseData` in interface `LicenseLoader`
    Returns:
      The license data.
    Throws:
      `Exception` - If an error occurs.