Code Monkey home page Code Monkey logo

statusbaroverlaymonotouch's Introduction

StatusBarOverlayMonoTouch

Port of the MTStatusBarOverlay (https://github.com/myell0w/MTStatusBarOverlay) for monontouch.

Description

This class provides a custom iOS (iPhone + iPad) status bar overlay window known from Apps like Reeder, Google Mobile App or Evernote. It currently supports touch-handling, queuing of messages, delegation as well as three different animation modes:

  • StatusBarOverlayAnimation.Shrink: When the user touches the overlay the overlay shrinks and only covers the battery-icon on the right side
  • StatusBarOverlayAnimation.FallDown: When the user touches the overlay a detail view falls down where additional information can be displayed. You can get a history of all your displayed messages for free by enabling historyTracking!
  • StatusBarOverlayAnimation.None: Nothing happens, when the user touches the overlay

StatusBarOverlay currently fully supports two different status bar styles, which also can be changed in your app (StatusBarOverlay will adopt the style and will be updated the next time you show it):

  • UIStatusBarStyle.Default
  • UIStatusBarStyle.BlackOpaque

Usage

You can use the custom status bar like this:

			StatusBarOverlay.StatusBarOverlay overlay = StatusBarOverlay.StatusBarOverlay.SharedInstance;
			overlay.Animation = StatusBarOverlayAnimation.Shrink;  // MTStatusBarOverlayAnimationShrink
			overlay.DetailViewMode = DetailViewMode.History;         // enable automatic history-tracking and show in detail-view
			overlay.Progress = 0.0;
			overlay.PostMessage(@"Following @myell0w on Twitter…");
			overlay.Progress = 0.4;
			// ...
			overlay.PostMessage(@"Following myell0w on Github…",false);
			overlay.Progress = 0.8;
			// ...
			overlay.PostImmediateFinishMessage(@"Following was a good idea!",2,true);
			overlay.Progress = 1.0;

Known Limitations

  • When using UIStatusBarStyle.BlackTranslutient the overlay is black opaque
  • User interaction in detail view is not possible yet

Part of that documentation, original code and most of the comments are copyright to myell0w !

statusbaroverlaymonotouch's People

Contributors

thecoachfr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.