All Products
Search
Document Center

SuperApp:EMASMiniAppInitConfig

Last Updated:Jun 02, 2026

The configuration class for opening a miniapp.

@interface EMASMiniAppInitConfig : NSObject

accessKey

@property (nonatomic, copy) NSString *accessKey;

The AccessKey. Obtain it from the Application Open Platform — see the User Guide under Application Open Platform (for platform operators) > Configure App.

secretKey

@property (nonatomic, copy) NSString *secretKey;

The secret key. Obtain it from the Application Open Platform — see the User Guide under Application Open Platform (for platform operators) > Configure App.

useUniApp

@property (nonatomic, assign) BOOL useUniApp;

Specifies whether to use the uni-app miniapp container. Default: NO.

useWindVane

@property (nonatomic, assign) BOOL useWindVane;

Specifies whether to use the WindVane miniapp container. Default: NO.

appCode

@property (nonatomic, copy) NSString *appCode;

The app ID. Obtain this from the Application Open Platform.

host

@property (nonatomic, copy) NSString *host;

The host for the miniapp's backend service.

useHttp

@property (nonatomic, assign) BOOL useHttp;

Specifies whether to use HTTP. When set to NO, HTTPS is used. Default: NO.

isCapsule

@property(nonatomic, assign) BOOL isCapsule;

Specifies whether to show the capsule button. Default: YES. Applies to uni-app miniapps only.

Note

If you do not configure navigationBar or titleNView for the uni-app page, the capsule button is not displayed.

menuActionSheetItems

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

The default items in the menu's action sheet. Applies to uni-app miniapps only.

actionSheetStyle

@property(nonatomic, strong) EMASMiniAppMenuActionSheetStyle *actionSheetStyle;

The style of the menu's action sheet. Applies to uni-app miniapps only.

capsuleButtonStyle

@property(nonatomic, strong) EMASMiniAppCapsuleButtonStyle *capsuleButtonStyle;

The style of the capsule button. Applies to uni-app miniapps only.

isCustomNavigationBar

@property (nonatomic, assign) BOOL isCustomNavigationBar;

Specifies whether the miniapp can hide the navigation bar. Applies to WindVane miniapps only.

needAuthFromApp

@property (nonatomic, assign) BOOL needAuthFromApp;

Specifies whether the miniapp requires user authorization before calling device information APIs (see wv.authorize user device information authorization flow). Default: NO. Applies to WindVane miniapps only.

popStyle

@property (nonatomic, strong) EMASMiniAppAuthPopStyle *popStyle;

The style of the authorization pop-up window for device API calls. Applies to WindVane miniapps only.

favorStyle

@property (nonatomic, strong) EMASMiniAppFavoriteStyle *favorStyle;

The style of the pop-up window displayed when the user taps More on the capsule button. Applies to WindVane miniapps only.

superAppNameSpace

@property (nonatomic, copy) NSString *superAppNameSpace;

The namespace for the JS API object. Default: WindVane, which maps to API calls via window.WindVane. Applies to WindVane miniapps only. For details, see Using custom branding for JS APIs.

jsApiClassNamePrefix

@property (nonatomic, copy) NSString *jsApiClassNamePrefix;

A custom prefix for the class names of JS API handlers. Applies to WindVane miniapps only. For details, see Using custom branding for JS APIs.

windvaneBackwardCompatible

@property (nonatomic, assign) BOOL windvaneBackwardCompatible;

Specifies whether to enable backward compatibility for window.WindVane.call. Default: YES. Applies to WindVane miniapps only. For details, see Using custom branding for JS APIs.

openLog

@property(nonatomic, assign) BOOL openLog;

Specifies whether to enable logging. Default: NO.