.. java:import:: android.content Intent .. java:import:: android.os AsyncTask .. java:import:: android.os Bundle .. java:import:: android.support.design.widget AppBarLayout .. java:import:: android.support.design.widget FloatingActionButton .. java:import:: android.support.v4.widget NestedScrollView .. java:import:: android.support.v7.app AppCompatActivity .. java:import:: android.support.v7.widget Toolbar .. java:import:: android.view LayoutInflater .. java:import:: android.view View .. java:import:: android.widget EditText .. java:import:: android.widget ImageButton .. java:import:: android.widget ImageView .. java:import:: android.widget LinearLayout .. java:import:: android.widget TextView .. java:import:: com.github.siyamed.shapeimageview BubbleImageView ChatSession =========== .. java:package:: ar.uba.fi.drtinder :noindex: .. java:type:: public class ChatSession extends AppCompatActivity Chat session activity. Represents a chat session between 2 users. Fields ------ EXTRA_FRIEND_ID ^^^^^^^^^^^^^^^ .. java:field:: public static final String EXTRA_FRIEND_ID :outertype: ChatSession Intent extra field: Friend user id EXTRA_FRIEND_NAME ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String EXTRA_FRIEND_NAME :outertype: ChatSession Intent extra field: Friend name Methods ------- addResponse ^^^^^^^^^^^ .. java:method:: public void addResponse(String message, String userId) :outertype: ChatSession Adds an user response to the chat log :param message: Message to add :param userId: Sender id onCreate ^^^^^^^^ .. java:method:: @Override protected void onCreate(Bundle bundle) :outertype: ChatSession Perform initialization of all fragments and loaders. :param bundle: If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in onSaveInstanceState(Bundle). Note: Otherwise it is null. onStart ^^^^^^^ .. java:method:: @Override protected void onStart() :outertype: ChatSession Called after onCreate(Bundle) — or after onRestart() when the activity had been stopped, but is now again being displayed to the user. It will be followed by onResume(). Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown. onStop ^^^^^^ .. java:method:: @Override public void onStop() :outertype: ChatSession Called when you are no longer visible to the user. You will next receive either onRestart(), onDestroy(), or nothing, depending on later user activity. Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.