Awesome
Status ANE for iOS Adobe AIR apps
If you ever wished you had full control over the iOS Statusbar, well, this Adobe AIR Native extension has been built just to do that. You can hide/show the Statusbar at runtime while deciding on the animation type. Moreover, you can change the Style of the Statusbar to make it look good on dark and light backgrounds. And that's not all! The Statusbar ANE will tell you the height of the Statusbar at any given time so you can easily adjust your content according to the possible height changes.
Main Features
- Hide/show the Statusbar and decide on the animation
- Change the Statusbar Style to fit dark/light backgrounds
- get the height of the Statusbar so you can adjust your AIR layout with it
- Listen to size changes at runtime. For example when user is on a phone and using your app.
- Hide the HomeIndicator from iPhoneX so it won't overlap your AIR content
IMPORTANT: Implementing ANEs in your AIR projects means you may be required to add some dependencies or copy some frameworks or editing your app's manifest file. Our ANE setup instruction is designed in a human-readable format but you may still need to familiarize yourself with this format. Read this post for more information
If you think manually setting up ANEs in your projects is confusing or time-consuming, you better check the ANELAB Software.
Tech Support
If you need our professional support to help you with implementing and using the ANE in your project, you can join MyFlashLabs Club or buy a premium support package. Otherwise, you may create new issues at this repository and the community might help you.
Air Usage
import com.myflashlab.air.extensions.statusbar.*;
Statusbar.init();
// listen to Statusbar size changes so you can adjust your AIR content based on it.
Statusbar.listener.addEventListener(StatusbarEvents.FRAME_CHANGED, onStatusbarFrameChanged);
// read the current Statusbar height at any given time
trace(Statusbar.height);
// hide or show the Statusbar while selecting on the animation type
//Statusbar.hideStatusbar(Statusbar.ANIMATION_SLIDE);
//Statusbar.showStatusbar(Statusbar.ANIMATION_FADE);
// change the Statusbar style to make it readable at dark/light backgrounds
Statusbar.changeStatusbarStyle(Statusbar.BAR_STYLE_DEFAULT, true);
Statusbar.changeStatusbarStyle(Statusbar.BAR_STYLE_LIGHT, true);
// Remove the iPhoneX HomeIndicator so it won't overlap your content
// you can call this method only once! other calls are ignored.
Statusbar.allowHomeIndicatorAutoHide();
Are you using this ANE in your project? Maybe you'd like to buy us a beer :beer:?
Add your name to the below list? Donate anything more than $100 and it will be.