共用方式為


IUIPageViewControllerDataSource 介面

定義

介面,表示通訊協定 UIPageViewControllerDataSource 的任何) 時, (所需的方法。

[Foundation.Protocol(Name="UIPageViewControllerDataSource", WrapperType=typeof(UIKit.UIPageViewControllerDataSourceWrapper))]
public interface IUIPageViewControllerDataSource : IDisposable, ObjCRuntime.INativeObject
type IUIPageViewControllerDataSource = interface
    interface INativeObject
    interface IDisposable
衍生
屬性
實作

備註

如果從 所 UIPageViewControllerDataSource 定義的通訊協定有任何) ,這個介面會包含必要的方法 (。

如果開發人員建立實作此介面的類別,則實作方法會自動匯出至 Objective-C,其中包含通訊協定中所定義方法的 UIPageViewControllerDataSource 相符簽章。

如果類別提供 UIPageViewControllerDataSource_Extensions 任何) 做為介面的擴充方法,則選擇性方法 (,讓開發人員可以在通訊協定上叫用任何選擇性方法。

屬性

Handle

處理非受控物件標記法) (指標。

(繼承來源 INativeObject)

方法

GetNextViewController(UIPageViewController, UIViewController)

傳回下一個 UIViewController。

GetPreviousViewController(UIPageViewController, UIViewController)

擷取先前的 UIViewController。

擴充方法

GetPresentationCount(IUIPageViewControllerDataSource, UIPageViewController)

要顯示在頁面指標中的頁數。

GetPresentationIndex(IUIPageViewControllerDataSource, UIPageViewController)

頁面指標中要醒目提示的頁面索引。

適用於