#[repr(C)]pub struct CNSocialProfile {
pub ptr: Id<Object>,
}Expand description
An immutable object that represents one of the user’s social profiles.
Fields§
§ptr: Id<Object>The raw pointer to the Objective-C object.
Implementations§
Source§impl CNSocialProfile
impl CNSocialProfile
Sourcepub fn init_with_url_string_username_user_identifier_service(
&mut self,
url_string: NSString,
username: NSString,
user_identifier: NSString,
service: NSString,
) -> Self
pub fn init_with_url_string_username_user_identifier_service( &mut self, url_string: NSString, username: NSString, user_identifier: NSString, service: NSString, ) -> Self
Initializes a new social profile object with the specified URL.
Sourcepub fn url_string(&self) -> NSString
pub fn url_string(&self) -> NSString
The URL associated with the social profile.
Sourcepub fn user_identifier(&self) -> NSString
pub fn user_identifier(&self) -> NSString
The service’s user identifier associated with the social profile.
Sourcepub fn localized_string_for_key(key: NSString) -> NSString
pub fn localized_string_for_key(key: NSString) -> NSString
Returns the localized name of the property for the specified key.
Sourcepub fn localized_string_for_service(service: NSString) -> NSString
pub fn localized_string_for_service(service: NSString) -> NSString
Returns the localized name of the specified service.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T.