Trait objc2_ui_kit::UIConfigurationState
source · pub unsafe trait UIConfigurationState: NSCopying + NSObjectProtocol + NSSecureCoding + IsMainThreadOnly {
// Provided methods
unsafe fn initWithTraitCollection(
this: Allocated<Self>,
trait_collection: &UITraitCollection
) -> Retained<Self>
where Self: Sized + Message { ... }
unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
where Self: Sized + Message { ... }
unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
where Self: Sized + Message { ... }
unsafe fn customStateForKey(
&self,
key: &UIConfigurationStateCustomKey
) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn setCustomState_forKey(
&self,
custom_state: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey
)
where Self: Sized + Message { ... }
unsafe fn objectForKeyedSubscript(
&self,
key: &UIConfigurationStateCustomKey
) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn setObject_forKeyedSubscript(
&self,
obj: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey
)
where Self: Sized + Message { ... }
}Available on crate feature
UIConfigurationState only.Provided Methods§
unsafe fn initWithTraitCollection( this: Allocated<Self>, trait_collection: &UITraitCollection ) -> Retained<Self>
Available on crate feature
UITraitCollection only.unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
Available on crate feature
UITraitCollection only.unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
Available on crate feature
UITraitCollection only.unsafe fn customStateForKey( &self, key: &UIConfigurationStateCustomKey ) -> Option<Retained<AnyObject>>
unsafe fn setCustomState_forKey( &self, custom_state: Option<&AnyObject>, key: &UIConfigurationStateCustomKey )
unsafe fn objectForKeyedSubscript( &self, key: &UIConfigurationStateCustomKey ) -> Option<Retained<AnyObject>>
unsafe fn setObject_forKeyedSubscript( &self, obj: Option<&AnyObject>, key: &UIConfigurationStateCustomKey )
Trait Implementations§
source§impl ProtocolType for dyn UIConfigurationState
impl ProtocolType for dyn UIConfigurationState
impl<T> ImplementedBy<T> for dyn UIConfigurationState
Implementations on Foreign Types§
impl<T> UIConfigurationState for ProtocolObject<T>where
T: ?Sized + UIConfigurationState,
Implementors§
impl UIConfigurationState for UICellConfigurationState
Available on crate features
UIViewConfigurationState and UICellConfigurationState only.impl UIConfigurationState for UIViewConfigurationState
Available on crate feature
UIViewConfigurationState only.