showCloseButton
The showCloseButton parameter is used to specify whether to display the progress bar that is located under the title bar.
Note: This parameter is only effective for H5 mini program and is not for DSL and H5+ mini program.
Parameter
Definition as follows:
copy
/**
* Determines Whether show close button.. Set to true to display the close button, and false to hide it
* Default is NO. Only in H5 miniprogram
*/
@property (nonatomic, assign) BOOL showCloseButton;
Parameter | Data Type | Required | Description |
showCloseButton | Bool | Yes | Controls whether to show the close button on title bar. Valid values:
If this parameter is not specified, the close button is hidden by default. |
Sample
copy
let param = GRVStartupParams()
param.showCloseButton = true
if let viewController = try? GRVAppContainerLaunch.sharedInstance().openApp(withUrl: url.absoluteString, startupParams: param) {
let rootNav: UINavigationController? = nil //get the current UINavigationController
rootNav?.pushViewController(viewController, animated: true)
}
User experience
Value | Screenshot |
| |
|