Skip to main content

UIPageViewControllerDataSource

Trait UIPageViewControllerDataSource 

Source
pub unsafe trait UIPageViewControllerDataSource: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn pageViewController_viewControllerBeforeViewController(
        &self,
        page_view_controller: &UIPageViewController,
        view_controller: &UIViewController,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    fn pageViewController_viewControllerAfterViewController(
        &self,
        page_view_controller: &UIPageViewController,
        view_controller: &UIViewController,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    fn presentationCountForPageViewController(
        &self,
        page_view_controller: &UIPageViewController,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    fn presentationIndexForPageViewController(
        &self,
        page_view_controller: &UIPageViewController,
    ) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature UIPageViewController only.
Expand description

Provided Methods§

Source

fn pageViewController_viewControllerBeforeViewController( &self, page_view_controller: &UIPageViewController, view_controller: &UIViewController, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

fn pageViewController_viewControllerAfterViewController( &self, page_view_controller: &UIPageViewController, view_controller: &UIViewController, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

fn presentationCountForPageViewController( &self, page_view_controller: &UIPageViewController, ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

fn presentationIndexForPageViewController( &self, page_view_controller: &UIPageViewController, ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIPageViewControllerDataSource

Source§

impl ProtocolType for dyn UIPageViewControllerDataSource

Source§

const NAME: &'static str = "UIPageViewControllerDataSource"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIPageViewControllerDataSource for ProtocolObject<T>

Implementors§