public class

DroidUxActionLib

extends Object
java.lang.Object
   ↳ com.droidux.pack.action.DroidUxActionLib

Class Overview

A class to manage the registration of the component library.

Every application that is using the component library, needs to register and initialize the library by calling the register(String, android.app.Application) or the register(String, android.app.Application, String) methods. If you want to change the default prefix used for resources, then you should use the later method.

Note: The default resource prefix used by this library is dux. If you change the resource prefix, you have to make sure that all the resources used by the library are available with the new prefix.

Summary

Public Methods
static String getResourcePrefix()
Gets the prefix of the resources used by the library.
static void register(String licenseKey, Application context, String resourcePrefix)
Registers and initialize the component library for use by the Application with the specified licenseKey.
static void register(String licenseKey, Application context)
Registers and initialize the component library for use by the Application with the specified licenseKey.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getResourcePrefix ()

Since: API Level 2.5

Gets the prefix of the resources used by the library.

Returns
  • the prefix of the resources.

public static void register (String licenseKey, Application context, String resourcePrefix)

Since: API Level 2.5

Registers and initialize the component library for use by the Application with the specified licenseKey.

The library will try to find and use the necessary resources with the resourcePrefix instead of the default prefix. Therefore you have to make sure that all the necessary resources are available with the new prefix.

Parameters
licenseKey If not null or empty string, this key will be used to validate your license.
context The Application that is using the library.
resourcePrefix The new resource prefix.

public static void register (String licenseKey, Application context)

Since: API Level 2.5

Registers and initialize the component library for use by the Application with the specified licenseKey.

Parameters
licenseKey If not null or empty string, this key will be used to validate your license.
context The Application that is using the library.