如果应用程序仅用于电视设备,则可以防止在其他类型的计算设备上安装该应用程序。
supportedProfiles
元素的受支持列表中不包括其他配置文件:
<supportedProfiles>tv extendedTV</supportedProfiles>
如果应用程序使用本机扩展,请在支持的配置文件列表中只包含
extendedTV
配置文件:
<supportedProfiles>extendedTV</supportedProfiles>
如果忽略
supportedProfiles
元素,则会假定应用程序支持所有配置文件。
请勿在
supportedProfiles
列表中
只
包含
tv
配置文件。一些电视设备始终以与
extendedTV
配置文件对应的模式运行 AIR for TV。正是由于这种行为才使得 AIR for TV 能够运行使用本机扩展的应用程序。如果您的
supportedProfiles
元素只指定了
tv
,则表示您的内容与 AIR for TV 的
extendedTV
模式不兼容。因此,一些电视设备无法加载只指定了
tv
配置文件的应用程序。
有关
tv
和
extendedTV
配置文件中支持的 ActionScript 类列表,请参阅
不同配置文件的功能
。