PtOnOffButtonCallback

PtOnOffButtonCallback — state change callback information.

Synopsis

class PtOnOffButtonCallback
{
    state;    // integer
}
		

Description

This class holds information from the Pt_CB_NEW_VALUE callback, which is generated when a PtOnOffButton is toggled ON or OFF.

Also see Pt_CB_NEW_VALUE in the PtOnOffButton section of the Photon documentation.

Instance Variables

state

An integer indicating the current state of the button. 0 is OFF; 1 or any non-zero value is ON.

Associated Classes

PtOnOffButton, PtCallbackInfo