Highlighted

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

Community Beginner ,
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?

Correct answer by krati | Adobe Employee

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

TOPICS
Air beta

Views

361

Likes

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

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

Community Beginner ,
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?

Correct answer by krati | Adobe Employee

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

TOPICS
Air beta

Views

362

Likes

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
Feb 08, 2017 0
Adobe Employee ,
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

Likes

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
Reply
Loading...
Feb 08, 2017 0
galanedu LATEST
Community Beginner ,
Feb 08, 2017

Copy link to clipboard

Copied

Thanks a lot!

Likes

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
Reply
Loading...
Feb 08, 2017 0