- NOTICE:
- This repository has been archived and is not supported.
[](http://unmaintained.tech/)
*
NOTICE: SUPPORT FOR THIS PROJECT HAS ENDED
This projected was owned and maintained by Walmart. This project has reached its end of life and Walmart no longer supports this project.
We will no longer be monitoring the issues for this project or reviewing pull requests. You are free to continue using this project under the license terms or forks of this project at your own risk. This project is no longer subject to Walmart’s bug bounty program or other security monitoring.
- Actions you can take
We recommend you take the following action:
- Review any configuration files used for build automation and make appropriate updates to remove or replace this project
- Notify other members of your team and/or organization of this change
- Notify your security team to help you evaluate alternative options
- Forking and transition of ownership
For [security reasons](https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/), Walmart does not transfer the ownership of our primary repos on Github or other platforms to other individuals/organizations. Further, we do not transfer ownership of packages for public package management systems.
If you would like to fork this package and continue development, you should choose a new name for the project and create your own packages, build automation, etc.
Please review the licensing terms of this project, which continue to be in effect even after decommission.
GCDiscreetNotificationView is a discreet, non-modal, notification view for iOS. You can use it to show an activity or state of you app without blocking the user interactions.
GCDiscreetNotificationView features:
- Easy to use : init and show
- Can show an activity indicator
- Two presentation mode (top and bottom)
- All properties (text, activity and presentation mode) can be changed in a animated fashion
(See the demo project included)
You simply allocate the notification view with one of the following methods.
The parameters are the following :
- text : the text presented on the notification
- activity : if set to
YES, the notification with show a activity indicator - aPresentationMode : the presentation mode of the notification (top or bottom)
- aView : the view that will contain the notification. The view should be able to accept subviews (will not work on a
UITableViewfor example)
- (id) initWithText:(NSString *)text inView:(UIView *)aView; - (id) initWithText:(NSString *)text showActivity:(BOOL)activity inView:(UIView *)aView; - (id) initWithText:(NSString *)text showActivity:(BOOL)activity inPresentationMode:(GCDiscreetNotificationViewPresentationMode) aPresentationMode inView:(UIView *)aView;
You show or hide the notification with these methods. The showAndDismissAutomaticallyAnimated will hide your notification automatically after 1 second.
- (void) showAnimated; - (void) hideAnimated; - (void) hideAnimatedAfter:(NSTimeInterval) timeInterval; - (void) show:(BOOL) animated; - (void) hide:(BOOL) animated; - (void) showAndDismissAutomaticallyAnimated; - (void) showAndDismissAfter:(NSTimeInterval) timeInterval;
You can change the text of the label of the activity viewing at any moment with these properties.
@property (nonatomic, assign) UIView *view; @property (nonatomic, assign) GCDiscreetNotificationViewPresentationMode presentationMode; @property (nonatomic, copy) NSString* textLabel; @property (nonatomic, assign) BOOL showActivity;
These properties can be changed in a animated fashion (except the view).
- (void) setTextLabel:(NSString *) aText animated:(BOOL) animated; - (void) setShowActivity:(BOOL) activity animated:(BOOL) animated; - (void) setTextLabel:(NSString *)aText andSetShowActivity:(BOOL)activity animated:(BOOL)animated; - (void) setPresentationMode:(GCDiscreetNotificationViewPresentationMode) newPresentationMode animated:(BOOL) animated;
You can access directly the notification’s label and activity indicator. And change some propreties on that label and activity indicator. If you want to change the label’s text or hide the indicator, use textLabel or showActivity instead.
@property (nonatomic, retain, readonly) UILabel *label; @property (nonatomic, retain, readonly) UIActivityIndicatorView *activityIndicator;
