• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR 25 - Avoid quit tvOS app when Siri Menu button is pressed?

Community Beginner ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

Hello,

I'm porting an iOS app to tvOS using AIR 25 Beta version.

The key event handler detects perfectly Menu button press and release, but when is pressed always exits to OS screen.

As other tvOS apps we want use Menu for back navigation going to previous app screen.

Is there any way for doing this?

TOPICS
Air beta

Views

495

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 08, 2017 Feb 08, 2017

Hello,

Yes you can implement this in your application. For this, you would have to call preventDefault() in the event handler for MENU button. This is also mentioned in the AppleTV release notes at https://fpdownload.macromedia.com//pub/labs/flashruntimes/shared/pvt/air25_appletv_releasenotes.pdf

To read more about preventDefault() click here.

Please let us know if you need more information on this.

Thanks,

Krati | Adobe AIR Engineering

Votes

Translate

Translate
Adobe Employee ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

Hello,

Yes you can implement this in your application. For this, you would have to call preventDefault() in the event handler for MENU button. This is also mentioned in the AppleTV release notes at https://fpdownload.macromedia.com//pub/labs/flashruntimes/shared/pvt/air25_appletv_releasenotes.pdf

To read more about preventDefault() click here.

Please let us know if you need more information on this.

Thanks,

Krati | Adobe AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

LATEST

Thanks a lot!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines