getLicense static method

LicenseRecord? getLicense(
  1. String id
)

Returns the LicenseRecord for a given ID or null if the license or corresponding title record is not found.

This method retrieves the LicenseRecord object that matches the specified ID. If no record is found, it returns null. The origin parameter can be used to override the default origin specified in initialization.

  • Parameters
    • id: The ID of the LicenseRecord to retrieve.
    • origin: An optional override of the default origin specified in initTikiSdkAsync.
  • Returns: The LicenseRecord that matches the specified ID or null if the license or corresponding title record is not found.

Implementation

static LicenseRecord? getLicense(String id) {
  _throwIfNotInitialized();
  return instance._core!.getLicense(id);
}