java.lang.Object | ||
↳ | androidx.fragment.app.Fragment | |
↳ | com.urbanairship.messagecenter.MessageListFragment |
Fragment that displays the Airship Message Center.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | MessageListFragment.OnListViewReadyCallback | Interface that defines the callback when the list view is ready. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
androidx.fragment.app.Fragment
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MessageListFragment() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbsListView |
getAbsListView()
Returns the
AbsListView for the fragment. | ||||||||||
void |
getAbsListViewAsync(MessageListFragment.OnListViewReadyCallback callback)
Gets the message list view once it is ready.
| ||||||||||
MessageViewAdapter |
getAdapter()
Returns the
MessageViewAdapter for the list view. | ||||||||||
Message |
getMessage(int position)
Returns a the
Message at a given position. | ||||||||||
void | onCreate(Bundle savedInstanceState) | ||||||||||
View |
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Subclasses can override to replace with their own layout.
| ||||||||||
void | onDestroy() | ||||||||||
void | onDestroyView() | ||||||||||
void | onPause() | ||||||||||
void | onResume() | ||||||||||
void | onViewCreated(View view, Bundle savedInstanceState) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MessageViewAdapter |
createMessageViewAdapter(Context context)
Called when the
MessageViewAdapter needs to be created
for the AbsListView . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
androidx.fragment.app.Fragment
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
| |||||||||||
From interface
androidx.activity.result.ActivityResultCaller
| |||||||||||
From interface
androidx.lifecycle.HasDefaultViewModelProviderFactory
| |||||||||||
From interface
androidx.lifecycle.LifecycleOwner
| |||||||||||
From interface
androidx.lifecycle.ViewModelStoreOwner
| |||||||||||
From interface
androidx.savedstate.SavedStateRegistryOwner
|
Returns the AbsListView
for the fragment.
AbsListView
.
Gets the message list view once it is ready. The callback will be called on the main thread. If the list view is already ready, the callback will be called immediately.
callback | The on ready callback. |
---|
Returns the MessageViewAdapter
for the list view.
MessageViewAdapter
for the list view.
Subclasses can override to replace with their own layout. If doing so, the
returned view hierarchy must have an AbsListView (GridView or ListView) whose id
is android.R.id.list
.
inflater | The LayoutInflater object that can be used to inflate any views in the fragment, |
---|---|
container | If non-null, this is the parent view that the fragment's UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view. |
savedInstanceState | If non-null, this fragment is being re-constructed from a previous saved state as given here. |
Called when the MessageViewAdapter
needs to be created
for the AbsListView
.
MessageViewAdapter
for the list view.