class ToggleButton extends Button {
/**
* @private
*/
$selected: boolean;
/**
* @language en_US
* Contains <code>true</code> if the button is in the down state,
* and <code>false</code> if it is in the up state.
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
/**
* @language zh_CN
* 按钮处于按下状态时为 <code>true</code>,而按钮处于弹起状态时为 <code>false</code>。
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
selected: boolean;
/**
* @private
*
* @param value
*/
$setSelected(value: boolean): boolean;
/**
* @inheritDoc
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
protected getCurrentState(): string;
/**
* @private
* 是否根据触摸事件自动变换选中状态,默认true。仅框架内使用。
*/
$autoSelected: boolean;
/**
* @inheritDoc
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
protected buttonReleased(): void;
}
}
/**
* @private
*/
$selected: boolean;
/**
* @language en_US
* Contains <code>true</code> if the button is in the down state,
* and <code>false</code> if it is in the up state.
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
/**
* @language zh_CN
* 按钮处于按下状态时为 <code>true</code>,而按钮处于弹起状态时为 <code>false</code>。
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
selected: boolean;
/**
* @private
*
* @param value
*/
$setSelected(value: boolean): boolean;
/**
* @inheritDoc
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
protected getCurrentState(): string;
/**
* @private
* 是否根据触摸事件自动变换选中状态,默认true。仅框架内使用。
*/
$autoSelected: boolean;
/**
* @inheritDoc
*
* @version Egret 2.4
* @version eui 1.0
* @platform Web,Native
*/
protected buttonReleased(): void;
}
}