Home | History | Annotate | Download | only in servertransaction
      1 /*
      2  * Copyright 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package android.app.servertransaction;
     18 
     19 import static android.app.servertransaction.ActivityLifecycleItem.LifecycleState;
     20 import static android.app.servertransaction.ActivityLifecycleItem.UNDEFINED;
     21 
     22 import android.os.Parcelable;
     23 
     24 /**
     25  * A callback message to a client that can be scheduled and executed.
     26  * Examples of these might be activity configuration change, multi-window mode change, activity
     27  * result delivery etc.
     28  *
     29  * @see ClientTransaction
     30  * @see com.android.server.am.ClientLifecycleManager
     31  * @hide
     32  */
     33 public abstract class ClientTransactionItem implements BaseClientRequest, Parcelable {
     34 
     35     /** Get the state that must follow this callback. */
     36     @LifecycleState
     37     public int getPostExecutionState() {
     38         return UNDEFINED;
     39     }
     40 
     41 
     42     // Parcelable
     43 
     44     @Override
     45     public int describeContents() {
     46         return 0;
     47     }
     48 }
     49