Lines Matching refs:level
42 thermal.registerThermalLevelCallback((level: thermal.ThermalLevel) => {
43 console.info('thermal level is: ' + level);
45 console.info('register thermal level callback success.');
47 console.error('register thermal level callback failed, err: ' + err);
79 console.info('unsubscribe thermal level success.');
81 console.info('unregister thermal level callback success.');
83 console.error('unregister thermal level callback failed, err: ' + err);
113 let level = thermal.getLevel();
114 console.info('thermal level is: ' + level);
116 console.error('get thermal level failed, err: ' + err);
139 thermal.subscribeThermalLevel((err: Error, level: thermal.ThermalLevel) => {
140 console.info('thermal level is: ' + level);
164 console.info('unsubscribe thermal level success.');
187 let level = thermal.getThermalLevel();
188 console.info('thermal level is: ' + level);