Class PagedLiveData.PageRequestBuilder
java.lang.Object
com.abubusoft.kripton.androidx.livedata.PagedLiveData.PageRequestBuilder
- Enclosing class:
- PagedLiveData<T>
public class PagedLiveData.PageRequestBuilder
extends java.lang.Object
This builder allows you to manipulate page request object, changing some
its attributes and invoke an unique update to live date.
- Author:
- xcesco
-
Method Summary
Modifier and Type Method Description voidapply()Applies all the change you defined with this builder.PagedLiveData.PageRequestBuilderoffset(int value)change offsetPagedLiveData.PageRequestBuilderpage(int value)change pagePagedLiveData.PageRequestBuilderpageSize(int value)change pageSize
-
Method Details
-
offset
change offset- Parameters:
value-- Returns:
-
page
change page- Parameters:
value-- Returns:
-
pageSize
change pageSize- Parameters:
value-- Returns:
-
apply
public void apply()Applies all the change you defined with this builder. Backend livedata will be updated. If nothing changes, no livedata update will be performed.
-