Composition API - Paging mechanism

When using the entity based methods you do get built-in paging using the PageSize and StartIndex query variables. What is necessary to use the built-in paging mechanism when using custom methods?

Thx,

Rodney