1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package org.chromium.base; 6 7/** 8 * A set of states that represent the last state change of an Activity. 9 */ 10public interface ActivityState { 11 /** 12 * Represents Activity#onCreate(). 13 */ 14 public final int CREATED = 1; 15 16 /** 17 * Represents Activity#onStart(). 18 */ 19 public final int STARTED = 2; 20 21 /** 22 * Represents Activity#onResume(). 23 */ 24 public final int RESUMED = 3; 25 26 /** 27 * Represents Activity#onPause(). 28 */ 29 public final int PAUSED = 4; 30 31 /** 32 * Represents Activity#onStop(). 33 */ 34 public final int STOPPED = 5; 35 36 /** 37 * Represents Activity#onDestroy(). This is also used when the state of an Activity is unknown. 38 */ 39 public final int DESTROYED = 6; 40} 41