content: /**
    * Copyright 2017 JessYan
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    *      http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  package <%= appPackage %>.base.delegate;
  
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.support.v4.app.FragmentManager;
  
  import <%= appPackage %>.base.BaseActivity;
  import <%= appPackage %>.base.BaseFragment;
  import <%= appPackage %>.di.component.AppComponent;
  
  import org.simple.eventbus.EventBus;
  
  /**
   * ================================================
   * 框架要求框架中的每个 {@link Activity} 都需要实现此类,以满足规范
   *
   * @see BaseActivity
   * Created by JessYan on 26/04/2017 21:42
   * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
   * <a href="https://github.com/JessYanCoding">Follow me</a>
   * ================================================
   */
  public interface IActivity {
  
      /**
       * 提供 AppComponent(提供所有的单例对象)给实现类,进行 Component 依赖
       *
       * @param appComponent
       */
      void setupActivityComponent(AppComponent appComponent);
  
      /**
       * 是否使用 {@link EventBus}
       *
       * @return
       */
      boolean useEventBus();
  
      /**
       * 初始化 View,如果initView返回0,框架则不会调用{@link Activity#setContentView(int)}
       *
       * @param savedInstanceState
       * @return
       */
      int initView(Bundle savedInstanceState);
  
      /**
       * 初始化数据
       *
       * @param savedInstanceState
       */
      void initData(Bundle savedInstanceState);
  
      /**
       * 这个Activity是否会使用Fragment,框架会根据这个属性判断是否注册{@link FragmentManager.FragmentLifecycleCallbacks}
       * 如果返回false,那意味着这个Activity不需要绑定Fragment,那你再在这个Activity中绑定继承于 {@link BaseFragment} 的Fragment将不起任何作用
       *
       * @return
       */
      boolean useFragment();
  }
  