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§
Sourceunsafe fn customViewPersistentData(
&self,
) -> Option<Retained<NSDictionary<NSString, AnyObject>>>
unsafe fn customViewPersistentData( &self, ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>
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.
Sourceunsafe fn setCustomViewPersistentData(
&self,
custom_view_persistent_data: Option<&NSDictionary<NSString, AnyObject>>,
)
unsafe fn setCustomViewPersistentData( &self, custom_view_persistent_data: Option<&NSDictionary<NSString, AnyObject>>, )
Setter for customViewPersistentData.
§Safety
custom_view_persistent_datageneric 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
impl ProtocolType for dyn AUCustomViewPersistentData
impl<T> ImplementedBy<T> for dyn AUCustomViewPersistentData
Implementations on Foreign Types§
impl<T> AUCustomViewPersistentData for ProtocolObject<T>where
T: ?Sized + AUCustomViewPersistentData,
Implementors§
impl AUCustomViewPersistentData for AUGenericView
Available on crate feature
AUGenericView only.