public class IFTTTMakerChannelTrigger extends GpioTriggerBase
Modifier and Type | Field and Description |
---|---|
protected static String |
IFTTT_MAKER_CHANNEL_URL |
Constructor and Description |
---|
IFTTTMakerChannelTrigger(String apikey,
String eventName) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
IFTTTMakerChannelTriggerListener listener) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
List<PinState> states) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
List<PinState> states,
IFTTTMakerChannelTriggerListener listener) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
PinState state) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
PinState[] states) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
PinState[] states,
IFTTTMakerChannelTriggerListener listener) |
IFTTTMakerChannelTrigger(String apikey,
String eventName,
PinState state,
IFTTTMakerChannelTriggerListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
invoke(GpioPin pin,
PinState state) |
void |
setTriggerListener(IFTTTMakerChannelTriggerListener listener)
Use this method to register/assign a custom trigger listener.
|
addPinState, addPinState, hasPinState
protected static final String IFTTT_MAKER_CHANNEL_URL
public IFTTTMakerChannelTrigger(String apikey, String eventName)
public IFTTTMakerChannelTrigger(String apikey, String eventName, PinState state)
public IFTTTMakerChannelTrigger(String apikey, String eventName, PinState[] states)
public IFTTTMakerChannelTrigger(String apikey, String eventName, List<PinState> states)
public IFTTTMakerChannelTrigger(String apikey, String eventName, IFTTTMakerChannelTriggerListener listener)
public IFTTTMakerChannelTrigger(String apikey, String eventName, PinState state, IFTTTMakerChannelTriggerListener listener)
public IFTTTMakerChannelTrigger(String apikey, String eventName, PinState[] states, IFTTTMakerChannelTriggerListener listener)
public IFTTTMakerChannelTrigger(String apikey, String eventName, List<PinState> states, IFTTTMakerChannelTriggerListener listener)
public void setTriggerListener(IFTTTMakerChannelTriggerListener listener)
listener
- public void invoke(GpioPin pin, PinState state)
invoke
in interface GpioTrigger
invoke
in class GpioTriggerBase
Copyright © 2012–2021 Pi4J. All rights reserved.