All Products
Search
Document Center

SuperApp:EMASMiniAppOpenConfiguration

Last Updated:Feb 14, 2025

The configuration class for starting a miniapp.

@interface EMASMiniAppOpenConfiguration : NSObject

path

@property(nonatomic, copy) NSString * path;

The absolute URL of a miniapp.

splashClass

@property(nonatomic, copy) NSString * splashClass;

Creates a custom splash screen. This parameter does not take effect when a miniapp that is already started is restarted. This parameter is applicable only to uni-app miniapps.

extraData

@property(nonatomic, strong) NSDictionary * extraData;

The JSON strings of custom uni-app startup parameters.

isEnableBackground

@property(nonatomic, assign) BOOL isEnableBackground;

Specifies whether a miniapp can run in the background after the miniapp is exited. This parameter is applicable only to uni-app miniapps.

Note

After you enable the run in background feature, the multitasking window appears. If you do not need a separate task window for the miniapp, disable the run in background feature.

loadingBackgroundColor

@property(nonatomic, copy) NSString * loadingBackgroundColor;

The color of webview loading background, this property is applicable only to windvane miniapps.

loadingMsg

@property(nonatomic, strong) NSString * loadingMsg;

The content of webview loading box show, this property is applicable only to windvane miniapps.

source

@property(nonatomic, assign) EMASMiniAppResourceSource source;

when open miniapps, the source of miniapps resource.

windvaneWindow

@property (nonatomic, strong) UIWindow *windvaneWindow;

The window to show windvane miniapps,this property is applicable only to windvane miniapps.