public class PWMManager
extends java.lang.Object
This handler allows applications to create PWM objects.
Unless noted, all PWM API methods require the
com.digi.android.permission.PWM permission. If your application does
not have this permission it will not have access to any PWM handler feature.
PWM| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_CHANNEL_NUMBER |
| Constructor and Description |
|---|
PWMManager(android.content.Context context)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PWM |
createPWM(int channel)
Creates and returns a
PWM object with the given channel. |
int[] |
listChannels()
Lists all available PWM channels in the device.
|
public static final java.lang.String ERROR_CHANNEL_NUMBER
public PWMManager(android.content.Context context)
Instantiates a new PWMManager for the given application.
context - Context of the application.public PWM createPWM(int channel) throws PWMException
PWM object with the given channel.channel - PWM channel index.java.lang.IllegalArgumentException - If channel < 0.PWMException - If the provided PWM channel is not available.listChannels(),
PWMpublic int[] listChannels()