AUCustomViewPersistentData

Trait AUCustomViewPersistentData 

Source
pub unsafe trait AUCustomViewPersistentData {
    // Provided methods
    unsafe fn customViewPersistentData(
        &self,
    ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>
       where Self: Sized + Message { ... }
    unsafe fn setCustomViewPersistentData(
        &self,
        custom_view_persistent_data: Option<&NSDictionary<NSString, AnyObject>>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AUCustomViewPersistentData only.
Expand description

Provided Methods§

Source

unsafe fn customViewPersistentData( &self, ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>
where Self: Sized + Message,

Property for accessing custom data to be preserved by the host

Getter- Return the custom data to be preserved by the host before closing the view. Setter- A NSDictionary containing the view data to restore when the view is opened. This property should set prior to opening the view. The au view should be written in such a way that it can store this dictionary and use its information when the view is opened and user interface elements are created. The view should retain this dictionary until it is finished with it, and should not release the dictionary. This dictionary is owned by the host.

§Safety

This is not retained internally, you must ensure the object is still alive.

Source

unsafe fn setCustomViewPersistentData( &self, custom_view_persistent_data: Option<&NSDictionary<NSString, AnyObject>>, )
where Self: Sized + Message,

Setter for customViewPersistentData.

§Safety
  • custom_view_persistent_data generic should be of the correct type.
  • This is unretained, you must ensure the object is kept alive while in use.

Trait Implementations§

Source§

impl ProtocolType for dyn AUCustomViewPersistentData

Source§

const NAME: &'static str = "AUCustomViewPersistentData"

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
Source§

impl<T> ImplementedBy<T> for dyn AUCustomViewPersistentData

Implementations on Foreign Types§

Source§

impl<T> AUCustomViewPersistentData for ProtocolObject<T>

Implementors§

Source§

impl AUCustomViewPersistentData for AUGenericView

Available on crate feature AUGenericView only.