public static class BaseLoaderWrapper.SwipeRefreshWrapper.FragmentData extends Object
FragmentData
class is a container to store data required to support "swipe refresh" feature.Constructor and Description |
---|
BaseLoaderWrapper.SwipeRefreshWrapper.FragmentData(Fragment fragment,
int resId,
boolean forceCache,
boolean merge,
Runnable runnable)
Initialises a newly created
FragmentData object. |
BaseLoaderWrapper.SwipeRefreshWrapper.FragmentData(View view,
int resId,
boolean forceCache,
boolean swipeProgress,
boolean merge,
Integer id,
Runnable runnable)
Initialises a newly created
FragmentData object. |
public BaseLoaderWrapper.SwipeRefreshWrapper.FragmentData(@NonNull Fragment fragment, @IdRes int resId, boolean forceCache, boolean merge, Runnable runnable)
FragmentData
object.fragment
- The fragmentresId
- The resource ID of the SwipeRefreshLayout
forceCache
- true
to force loading data from cache, false
otherwisemerge
- true
to merge the newly loaded data with already existing, false
otherwiserunnable
- The Runnable
to run before loading will be startedpublic BaseLoaderWrapper.SwipeRefreshWrapper.FragmentData(View view, @IdRes int resId, boolean forceCache, boolean swipeProgress, boolean merge, Integer id, Runnable runnable)
FragmentData
object.view
- The view which contains SwipeRefreshLayout
resId
- The resource ID of the SwipeRefreshLayout
forceCache
- true
to force loading data from cache, false
otherwiseswipeProgress
- Whether or not the view should show refresh progress; see SwipeRefreshLayout.setRefreshing(boolean)
merge
- true
to merge the newly loaded data with already existing, false
otherwiseid
- The loader ID (or null for default one)runnable
- The Runnable
to run before loading will be started
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.