All Products
Search
Document Center

SuperApp:EMASMiniAppInitConfig

Last Updated:Jun 19, 2025

The configuration class for starting a miniapp.

@interface EMASMiniAppInitConfig : NSObject

accessKey

@property (nonatomic, copy) NSString *accessKey;

The AccessKey of the app, which can be obtained from Application Open Platform. For more information about how to obtain the AccessKey, see the Configure an app topic in the Application Open Platform (for platform operators) chapter of the User Guide.

secretKey

@property (nonatomic, copy) NSString *secretKey;

The SecretKey of the app, which can be obtained from Application Open Platform. For more information about how to obtain the SecretKey, see the Configure an app topic in the Application Open Platform (for platform operators) chapter of the User Guide.

useUniApp

@property (nonatomic, assign) BOOL useUniApp;

Specifies whether to use the uni-app miniapp container. By default, the uni-app miniapp container is not used.

useWindVane

@property (nonatomic, assign) BOOL useWindVane;

Specifies whether to use the WindVane miniapp container. By default, the WindVane miniapp container is not used.

appCode

@property (nonatomic, copy) NSString *appCode;

The app ID, which can be obtained from Application Open Platform.

host

@property (nonatomic, copy) NSString *host;

The backend service host of the miniapp.

useHttp

@property (nonatomic, assign) BOOL useHttp;

Specifies whether to use HTTP or HTTPS. By default, HTTPS is used.

isCapsule

@property(nonatomic, assign) BOOL isCapsule;

Specifies whether to use capsule buttons. By default, capsule buttons are used. This parameter is applicable only to uni-app miniapps.

Note

If navigationBar or titleNView is not configured in your uni-app miniapp, capsule buttons are not displayed.

menuActionSheetItems

@property(nonatomic, strong) NSArray<EMASMiniAppMenuActionSheetItem *> *menuActionSheetItems;

The default menu buttons. This parameter is applicable only to uni-app miniapps.

actionSheetStyle

@property(nonatomic, strong) EMASMiniAppMenuActionSheetStyle *actionSheetStyle;

The menu button present actionSheet style. This parameter is applicable only to uni-app miniapps.

capsuleButtonStyle

@property(nonatomic, strong) EMASMiniAppCapsuleButtonStyle *capsuleButtonStyle;

The capsule button style. This parameter is applicable only to uni-app miniapps.

isCustomNavigationBar

@property (nonatomic, assign) BOOL isCustomNavigationBar;

Specifies whether to hide navigation bar, This parameter is applicable only to windvane miniapps.

needAuthFromApp

@property (nonatomic, assign) BOOL needAuthFromApp;

Specifies whether to enable the miniapp to obtain user authorization when calling device information related interfaces (see wv.authorize User Device Information Authorization Process),By default false. This parameter is applicable only to windvane miniapps.

popStyle

@property (nonatomic, strong) EMASMiniAppAuthPopStyle *popStyle;

Display the authorization pop-up window when the miniapp calls the device information related interface. This parameter is applicable only to windvane miniapps.

favorStyle

@property (nonatomic, strong) EMASMiniAppFavoriteStyle *favorStyle;

Display the pop-up window when click the capsule more button on navigation bar. This parameter is applicable only to windvane miniapps.

superAppNameSpace

@property (nonatomic, copy) NSString *superAppNameSpace;

Supports namespace that can be modified for the miniapp jsapi method call. The default mini app call is window.WindVane. This parameter is applicable only to windvane miniapps.(see How to use the Mini App JsApi white label)

jsApiClassNamePrefix

@property (nonatomic, copy) NSString *jsApiClassNamePrefix;

Supports modifying the class name prefix of the miniapp jsapi method call. This parameter is applicable only to windvane miniapps.(see How to use the Mini App JsApi white label)

windvaneBackwardCompatible

@property (nonatomic, assign) BOOL windvaneBackwardCompatible;

Whether window.WindVane.call can be used to call jsapi methods. The default value is true.This parameter is applicable only to windvane miniapps.(see How to use the Mini App JsApi white label)

openLog

@property (nonatomic, assign) BOOL openLog;

Specifies whether to enable the logging feature. Valid values: Yes and No. Default value: No. Yes: enables the logging feature. No: disables the logging feature.