本文整理汇总了Java中com.sonyericsson.extras.liveware.extension.util.control.ControlExtension.onDoAction方法的典型用法代码示例。如果您正苦于以下问题:Java ControlExtension.onDoAction方法的具体用法?Java ControlExtension.onDoAction怎么用?Java ControlExtension.onDoAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sonyericsson.extras.liveware.extension.util.control.ControlExtension
的用法示例。
在下文中一共展示了ControlExtension.onDoAction方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doActionOnAllControls
import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
* Trigger action for all controls. Use this method to take the same action
* on all controls.
*
* @param requestCode Code defined by the caller used to distinguish between
* different actions.
* @param bundle Optional bundle with additional information.
*/
public void doActionOnAllControls(int requestCode, Bundle bundle) {
Iterator<ControlExtension> iterator = mControls.values().iterator();
while (iterator.hasNext()) {
ControlExtension control = iterator.next();
control.onDoAction(requestCode, bundle);
}
}
示例2: doActionOnControl
import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
* Trigger action on a control.
*
* @param requestCode Code defined by the caller used to distinguish between
* different actions.
* @param hostAppPackageName The host app package name.
* @param bundle Optional bundle with additional information.
*
* @returns True if the widget exists. False otherwise.
*/
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
ControlExtension control = mControls.get(hostAppPackageName);
if (control != null) {
control.onDoAction(requestCode, bundle);
return true;
}
return false;
}
示例3: doActionOnControl
import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
* Trigger action on a control.
*
* @param requestCode Code defined by the caller used to distinguish between
* different actions.
* @param hostAppPackageName The host app package name.
* @param bundle Optional bundle with additional information.
* @returns True if the widget exists. False otherwise.
*/
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
ControlExtension control = mControls.get(hostAppPackageName);
if (control != null) {
control.onDoAction(requestCode, bundle);
return true;
}
return false;
}
示例4: doActionOnControl
import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
* Trigger action on a control.
*
* @param requestCode Code defined by the caller used to distinguish between
* different actions.
* @param hostAppPackageName The host app package name.
* @param bundle Optional bundle with additional information.
* @return True if the widget exists. False otherwise.
*/
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
ControlExtension control = mControls.get(hostAppPackageName);
if (control != null) {
control.onDoAction(requestCode, bundle);
return true;
}
return false;
}
示例5: doActionOnAllControls
import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
* Trigger action for all controls. Use this method to take the same action
* on all controls.
*
* @param requestCode Code defined by the caller used to distinguish between
* different actions.
* @param bundle Optional bundle with additional information.
*/
public void doActionOnAllControls(int requestCode, Bundle bundle) {
for (ControlExtension control : mControls.values())
control.onDoAction(requestCode, bundle);
}