Introduction to Pages
:getCurrentPage
pageObj:getCurrentPage() --> This method does not need a promise as it returns whatever page is already selected:getPreviousPage
pageObj:getPreviousPage() --> This method does not need a promise as it returns whatever page is already cached:advanceToNextPage
pageObj:advanceToNextPage():andThen(function(nextPage)
print(nextPage,"loaded");
end):catch(function(err)
warn(err);
end)Last updated