Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.
/ Statusbar-ANE Public archive

Control the Statusbar in your AIR apps in runtime with this AIR Native Extension

License

Notifications You must be signed in to change notification settings

myflashlab/Statusbar-ANE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Hide/show the Statusbar and decide on the animation
  2. Change the Statusbar Style to fit dark/light backgrounds
  3. get the height of the Statusbar so you can adjust your AIR layout with it
  4. Listen to size changes at runtime. For example when user is on a phone and using your app.
  5. 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.

The ANE-LAB 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 🍺?

paypal

Add your name to the below list? Donate anything more than $100 and it will be.

Sponsored by...

Miso Duzek
Simplicity is the ultimate sophistication

About

Control the Statusbar in your AIR apps in runtime with this AIR Native Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published