IUIPageViewControllerDataSource Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This interface represents the Objective-C protocol UIPageViewControllerDataSource.
[Foundation.Protocol(Name="UIPageViewControllerDataSource", WrapperType=typeof(UIKit.UIPageViewControllerDataSourceWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPreviousViewController", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController), typeof(UIKit.UIViewController) }, ReturnType=typeof(UIKit.UIViewController), Selector="pageViewController:viewControllerBeforeViewController:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetNextViewController", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController), typeof(UIKit.UIViewController) }, ReturnType=typeof(UIKit.UIViewController), Selector="pageViewController:viewControllerAfterViewController:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPresentationCount", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController) }, ReturnType=typeof(System.IntPtr), Selector="presentationCountForPageViewController:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPresentationIndex", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController) }, ReturnType=typeof(System.IntPtr), Selector="presentationIndexForPageViewController:")]
public interface IUIPageViewControllerDataSource : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIPageViewControllerDataSource", WrapperType=typeof(UIKit.UIPageViewControllerDataSourceWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPreviousViewController", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController), typeof(UIKit.UIViewController) }, ReturnType=typeof(UIKit.UIViewController), Selector="pageViewController:viewControllerBeforeViewController:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetNextViewController", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController), typeof(UIKit.UIViewController) }, ReturnType=typeof(UIKit.UIViewController), Selector="pageViewController:viewControllerAfterViewController:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPresentationCount", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController) }, ReturnType=typeof(System.IntPtr), Selector="presentationCountForPageViewController:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPresentationIndex", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPageViewController) }, ReturnType=typeof(System.IntPtr), Selector="presentationIndexForPageViewController:")>]
type IUIPageViewControllerDataSource = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Remarks
A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.
A class may also implement members from this interface to implement members from the protocol.
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Methods
| Name | Description |
|---|---|
| GetNextViewController(UIPageViewController, UIViewController) |
Returns the next UIViewController. |
| GetPresentationCount(UIPageViewController) |
The number of pages to be shown in the page indicator. |
| GetPresentationIndex(UIPageViewController) |
The index of the page to be highlighted in the page indicator. |
| GetPreviousViewController(UIPageViewController, UIViewController) |
Retrieves the previous UIViewController. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |
| GetPresentationCount(IUIPageViewControllerDataSource, UIPageViewController) |
The number of pages to be shown in the page indicator. |
| GetPresentationIndex(IUIPageViewControllerDataSource, UIPageViewController) |
The index of the page to be highlighted in the page indicator. |