API详解
AppState(监听App的active、background和inactive状态)