<script>
import display from '@blueos.display';
import storage from '@system.storage';
export default {
euvBlueOsState: {
ambient: false,
active: false,
displayInfo: null
},
onCreate() {
this.euvBlueOsState.active = true;
if (display && typeof display.getInfo === 'function') {
display.getInfo({
success: (info) => {
this.euvBlueOsState.displayInfo = info;
}
});
}
if (storage && typeof storage.get === 'function') {
storage.get({ key: 'euv_theme', success: () => {} });
}
},
onDestroy() {
this.euvBlueOsState.active = false;
}
};
</script>