QMUIConfigurationTemplateProtocol

@protocol QMUIConfigurationTemplateProtocol <NSObject>

所有配置表都应该实现的 protocol All configuration templates should implement this protocal

  • 应用配置表的设置 Applies configurations

    Declaration

    Objective-C

    - (void)applyConfigurationTemplate;

    Swift

    func applyConfigurationTemplate()
  • 当返回 YES 时,启动 App 的时候 QMUIConfiguration 会自动应用这份配置表。但启动 App 时自动应用的配置表最多只允许一份,如果有多份则其他的会被忽略 QMUIConfiguration automatically applies this template on launch when set to YES. Since only one copy of configuration template is allowed when the app launches, you’ll have to call applyConfigurationTemplate manually if you have more than one configuration templates.

    Declaration

    Objective-C

    - (BOOL)shouldApplyTemplateAutomatically;

    Swift

    optional func shouldApplyTemplateAutomatically() -> Bool