package com.gh.gamecenter.core

import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService

@AutoService(IApplication::class)
class HaloApp : IApplication {

    override fun attachBaseContext() {

    }

    override fun onCreate(application: Application) {
        mApp = application
    }


    override fun onLowMemory() {

    }

    override fun onTerminate() {

    }

    override fun onTrimMemory(level: Int) {

    }

    override fun onConfigurationChanged(newConfig: Configuration) {

    }

    companion object {
        private lateinit var mApp: Application

        @JvmStatic
        fun getInstance(): Application {
            return mApp
        }
    }
}