TCGBImageNotice Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TCGBImageNotice.h |
Request Showing Image Notices
+ showImageNoticesWithViewController:closeCompletion:
This is the method to request showing image notices. There is a viewController parameter and you may put your top most viewController. When finished showing image notices, this method calls closeCompletion.
+ (void)showImageNoticesWithViewController:(nullable UIViewController *)viewController closeCompletion:(void ( ^ _Nullable ) ( TCGBError *_Nullable error ))closeCompletionParameters
viewController |
represent to current viewController |
|---|---|
closeCompletion |
completion may call when finished showing image notices. If there is an error, TCGBError will be returned. Usage Example |
Discussion
Request Showing Image Notices.
Warning: If viewController is nil, Image Notices set it to top most view controller automatically.
Declared In
TCGBImageNotice.h
+ showImageNoticesWithViewController:configuration:closeCompletion:schemeEvent:
This is the method to request showing image notices. There is a viewController parameter and you may put your top most viewController. When finished showing image notices, this method calls closeCompletion.
+ (void)showImageNoticesWithViewController:(nullable UIViewController *)viewController configuration:(nullable TCGBImageNoticeConfiguration *)configuration closeCompletion:(void ( ^ _Nullable ) ( TCGBError *_Nullable error ))closeCompletion schemeEvent:(void ( ^ _Nullable ) ( NSString *_Nullable payload , TCGBError *_Nullable error ))schemeEventParameters
viewController |
Represent to current viewController. |
|---|---|
configuration |
This configuration applies to the behavior of the image notices. |
closeCompletion |
Completion may call when finished showing image notices. |
schemeEvent |
SchemeEvent may call when custom scheme event occurred. If there is an error, TCGBError will be returned. Usage Example
|
Discussion
Request Showing Image Notices.
Warning: If viewController is nil, Image Notices set it to top most view controller automatically.
Warning: If configuration is nil, Image Notices set it to default value. it is described in TCGBImageNoticeConfiguration.
Declared In
TCGBImageNotice.h
Request to close Image Notices
+ closeImageNoticesWithViewController:
This is the method to request to close image notices.
+ (void)closeImageNoticesWithViewController:(nullable UIViewController *)viewControllerParameters
viewController |
Represent to current viewController. |
|---|
Discussion
Request to close Image Notices.
Warning: If viewController is nil, it will be set to top most view controller automatically.
Usage Example
- (void)closeImageNotices {
[TCGBImageNotice closeImageNoticesWithViewController:self];
}
Declared In
TCGBImageNotice.h