Version: Smart Feature Phone 2.5

LargeText

Description#

Represents the current selection of text size, application developers might need to relayout its UI base on different size of text.

Properties#

  • Navigator.largeTextEnabled
    The read-only property returns a boolean representing the preferred text size of users, true if users select text size large, false if users select text size normal.

Methods#

EventHandler:#

  • largetextenabledchanged
    The event target is window, dispatched when users has changed the value of Device/Accessibility/Large Text from Settings App.

Example#

window.addEventListener('largetextenabledchanged', () => {
if (navigator.largeTextEnabled) {
console.log('Text size is now set to large, update UI if necessary.');
}
}