本文整理汇总了Java中android.support.wearable.complications.rendering.ComplicationDrawable.setBurnInProtection方法的典型用法代码示例。如果您正苦于以下问题:Java ComplicationDrawable.setBurnInProtection方法的具体用法?Java ComplicationDrawable.setBurnInProtection怎么用?Java ComplicationDrawable.setBurnInProtection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.wearable.complications.rendering.ComplicationDrawable
的用法示例。
在下文中一共展示了ComplicationDrawable.setBurnInProtection方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onPropertiesChanged
import android.support.wearable.complications.rendering.ComplicationDrawable; //导入方法依赖的package包/类
@Override
public void onPropertiesChanged(Bundle properties) {
super.onPropertiesChanged(properties);
mLowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
mBurnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
//Updates complications to properly render in Ambient Mode based on device
for (int COMPLICATION_ID : COMPLICATION_IDS) {
final ComplicationDrawable complicationDrawable
= mComplicationDrawableSparseArray.get(COMPLICATION_ID);
if (complicationDrawable != null) {
complicationDrawable.setLowBitAmbient(mLowBitAmbient);
complicationDrawable.setBurnInProtection(mBurnInProtection);
}
}
}
示例2: onPropertiesChanged
import android.support.wearable.complications.rendering.ComplicationDrawable; //导入方法依赖的package包/类
@Override
public void onPropertiesChanged(Bundle properties) {
mLowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
mBurnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
// Updates complications to properly render in ambient mode based on the
// screen's capabilities.
ComplicationDrawable complicationDrawable;
for (int i = 0; i < COMPLICATION_IDS.length; i++) {
complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]);
if(complicationDrawable != null) {
complicationDrawable.setLowBitAmbient(mLowBitAmbient);
complicationDrawable.setBurnInProtection(mBurnInProtection);
}
}
}
示例3: onPropertiesChanged
import android.support.wearable.complications.rendering.ComplicationDrawable; //导入方法依赖的package包/类
@Override
public void onPropertiesChanged(Bundle properties) {
mLowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
mBurnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
// Updates complications to properly render in ambient mode based on the
// screen's capabilities.
ComplicationDrawable complicationDrawable;
for (int i = 0; i < COMPLICATION_IDS.length; i++) {
complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]);
if(complicationDrawable != null) {
complicationDrawable.setLowBitAmbient(mLowBitAmbient);
complicationDrawable.setBurnInProtection(mBurnInProtection);
}
}
}
示例4: onPropertiesChanged
import android.support.wearable.complications.rendering.ComplicationDrawable; //导入方法依赖的package包/类
@Override
public void onPropertiesChanged(Bundle properties) {
mLowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
mBurnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
// Updates complications to properly render in ambient mode based on the
// screen's capabilities.
ComplicationDrawable complicationDrawable;
for (int i = 0; i < COMPLICATION_IDS.length; i++) {
complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]);
if(complicationDrawable != null) {
complicationDrawable.setLowBitAmbient(mLowBitAmbient);
complicationDrawable.setBurnInProtection(mBurnInProtection);
}
}
}
示例5: onPropertiesChanged
import android.support.wearable.complications.rendering.ComplicationDrawable; //导入方法依赖的package包/类
@Override
public void onPropertiesChanged(Bundle properties) {
super.onPropertiesChanged(properties);
Log.d(TAG, "onPropertiesChanged: low-bit ambient = " + mLowBitAmbient);
mLowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
mBurnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
// Updates complications to properly render in ambient mode based on the
// screen's capabilities.
ComplicationDrawable complicationDrawable;
for (int i = 0; i < COMPLICATION_IDS.length; i++) {
complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]);
complicationDrawable.setLowBitAmbient(mLowBitAmbient);
complicationDrawable.setBurnInProtection(mBurnInProtection);
}
}