get_cursor


Description:

[ Version ( since = "3.12" ) ]
public async bool get_cursor (string sexp, ContactField sort_fields, BookCursorSortType sort_types, uint n_fields, Cancellable? cancellable, out BookClientCursor out_cursor) throws Error

Create an BookClientCursor.

The call is finished by get_view.end from the callback.

Note: sexp can be obtained through BookQuery, by converting it to a string with to_string.

Parameters:

this

an BookClient

sexp

an S-expression representing the query

sort_fields

an array of ContactFields to sort the cursor with

sort_types

an array of BookCursorSortTypes to complement sort_fields

n_fields

the length of the input sort_fields and sort_types arrays

cancellable

a Cancellable; can be null

callback

callback to call when a result is ready

user_data

user data for the callback