Class PageController
Inheritance
System.Object
PageController
Syntax
public class PageController : ScrollController, Listenable
Constructors
PageController(Int32, Boolean, Single)
Declaration
public PageController(int initialPage = 0, bool keepPage = true, float viewportFraction = 1F)
Parameters
Type |
Name |
Description |
System.Int32 |
initialPage |
|
System.Boolean |
keepPage |
|
System.Single |
viewportFraction |
|
Fields
initialPage
Declaration
public readonly int initialPage
Field Value
Type |
Description |
System.Int32 |
|
keepPage
Declaration
public readonly bool keepPage
Field Value
Type |
Description |
System.Boolean |
|
viewportFraction
Declaration
public readonly float viewportFraction
Field Value
Type |
Description |
System.Single |
|
Properties
page
Declaration
public float page { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
animateToPage(Int32, TimeSpan, Curve)
Declaration
public IPromise animateToPage(int page, TimeSpan duration, Curve curve)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.TimeSpan |
duration |
|
Curve |
curve |
|
Returns
attach(ScrollPosition)
Declaration
public override void attach(ScrollPosition position)
Parameters
Overrides
createScrollPosition(ScrollPhysics, ScrollContext, ScrollPosition)
Declaration
public override ScrollPosition createScrollPosition(ScrollPhysics physics, ScrollContext context, ScrollPosition oldPosition)
Parameters
Returns
Overrides
jumpToPage(Int32)
Declaration
public void jumpToPage(int page)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
nextPage(TimeSpan, Curve)
Declaration
public IPromise nextPage(TimeSpan duration, Curve curve)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
Curve |
curve |
|
Returns
previousPage(TimeSpan, Curve)
Declaration
public IPromise previousPage(TimeSpan duration, Curve curve)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
Curve |
curve |
|
Returns