Class MeaCardData.Configuration

java.lang.Object
com.meawallet.mcd.MeaCardData.Configuration
Enclosing class:
MeaCardData

public static class MeaCardData.Configuration extends Object
MCD SDK configuration information.
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • versionCode

      public static int versionCode()
      Returns version code of the SDK.
      Returns:
      Version code as int.
    • versionName

      @NonNull public static String versionName()
      Returns version name of the SDK. Example: "mcd-mea-test-1.0.0-6"
      Returns:
      Version name as String.
    • buildType

      @NonNull public static String buildType()
      Returns build type of the SDK. Possible values: "debug" or "release".
      Returns:
      Build type of the package as String.
    • loadConfig

      public static void loadConfig(@NonNull String configFileName) throws McdException
      Loads custom configuration file.
      Parameters:
      configFileName - file name in the `raw` folder or path to file on the Application's private internal storage.
      Throws:
      McdException - Use McdException.getMcdError() ()} to get error object with error code and error description.
    • hash

      @Nullable public static String hash()
      Returns hash of the loaded configuration.
      Returns:
      hash of the loaded configuration or an empty string when configuration is not loaded.