Repository navigation
PAM Native 1.47.0
·
61 commits
to main
since this release
TV apps: Android TV, Google TV and Fire TV from the same code as the phone app.
See docs/tv.md.
- Manifest:
targets(android,ios,android-tv) andandroid.tv
(banner,overscan). Theandroid-tvtarget adds the TV launcher entry,
the banner and optional touch screen and leanback features. TVs need 64-bit
Android:armeabi-v7ais refused with a clear message, because the PHP SDK
needs 64-bit integers. - Remote and keyboard keys:
on:keyDownwith a typedKeyEvent(W3C names:
arrows,Enter,GoBack,ContextMenu, media and colour keys) and
captureKeys, like PAM Desktop. - Focus:
focusable,autoFocuson any element,focusGroup(rails and menus
remember their last focused child),nextFocusUp/Down/Left/Rightand a
default focus ring that follows the corners while a remote drives the app
(focusRing="none"or a:focusstyle replace it).on:focus/on:blur
now reach any element. useFormFactor()(type,tv,phone,tablet,remote,touch), and
deviceClassisTelevisionon a TV. The pointer of a remote isnone.Name.tv.pam.php(and.phone/.tablet) variants: another template for
the same component class.- Overscan: 5% safe-area margins on TVs (
android.tv.overscan). - The build warns about elements only touch gestures reach when the app
targetsandroid-tv. scripts/android-e2e.py: end-to-end scripts that drive an app with the
remote and check the screen and the focus.examples/tv(PAM TV) runs one
on a Google TV emulator.- Protocol: extension event 1001 (
KeyDown) and properties 1012-1020. - mbstring polyfill: like ext-mbstring since PHP 8.5.12, a lone surrogate
from UCS-2/4 written to UTF-8 is substituted instead of kept.