pub unsafe trait UIConfigurationState:
NSObjectProtocol
+ NSCopying
+ NSSecureCoding
+ MainThreadOnly {
// 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.Expand description
Provided Methods§
Sourceunsafe fn initWithTraitCollection(
this: Allocated<Self>,
trait_collection: &UITraitCollection,
) -> Retained<Self>
Available on crate feature UITraitCollection
only.
unsafe fn initWithTraitCollection( this: Allocated<Self>, trait_collection: &UITraitCollection, ) -> Retained<Self>
UITraitCollection
only.Returns a new instance with the specified trait collection.
unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
Available on crate feature
UITraitCollection
only.Sourceunsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
Available on crate feature UITraitCollection
only.
unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
UITraitCollection
only.Setter for traitCollection
.
Sourceunsafe fn customStateForKey(
&self,
key: &UIConfigurationStateCustomKey,
) -> Option<Retained<AnyObject>>
unsafe fn customStateForKey( &self, key: &UIConfigurationStateCustomKey, ) -> Option<Retained<AnyObject>>
Returns the custom state for the specified key.
Sourceunsafe fn setCustomState_forKey(
&self,
custom_state: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey,
)
unsafe fn setCustomState_forKey( &self, custom_state: Option<&AnyObject>, key: &UIConfigurationStateCustomKey, )
Sets the custom state for the specified key.
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 feature
UICellConfigurationState
only.impl UIConfigurationState for UIViewConfigurationState
Available on crate feature
UIViewConfigurationState
only.