当前位置: 首页>>代码示例>>Java>>正文


Java ComplicationDrawable.setBurnInProtection方法代码示例

本文整理汇总了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);
        }
    }
}
 
开发者ID:Nxt3,项目名称:IO_Classic_WatchFace,代码行数:19,代码来源:IOClassicWatchFaceService.java

示例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);
        }
    }
}
 
开发者ID:googlecodelabs,项目名称:complications,代码行数:19,代码来源:ComplicationWatchFaceService.java

示例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);
        }

    }
}
 
开发者ID:googlecodelabs,项目名称:complications,代码行数:20,代码来源:ComplicationWatchFaceService.java

示例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);
        }
    }
}
 
开发者ID:googlecodelabs,项目名称:complications,代码行数:20,代码来源:ComplicationWatchFaceService.java

示例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);
    }
}
 
开发者ID:googlesamples,项目名称:android-WatchFace,代码行数:20,代码来源:AnalogComplicationWatchFaceService.java


注:本文中的android.support.wearable.complications.rendering.ComplicationDrawable.setBurnInProtection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。