FBSDKShareOpenGraphValueContaining Protocol Reference
Conforms to | NSObject NSSecureCoding |
Declared in | FBSDKShareOpenGraphValueContainer.h |
Tasks
-
– arrayForKey:
required method -
– enumerateKeysAndObjectsUsingBlock:
required method -
– keyEnumerator
required method -
– numberForKey:
required method -
– objectEnumerator
required method -
– objectForKey:
required method -
– objectForKeyedSubscript:
required method -
– parseProperties:
required method -
– photoForKey:
required method -
– removeObjectForKey:
required method -
– setArray:forKey:
required method -
– setNumber:forKey:
required method -
– setObject:forKey:
required method -
– setPhoto:forKey:
required method -
– setString:forKey:
required method -
– setURL:forKey:
required method -
– stringForKey:
required method -
– URLForKey:
required method
Instance Methods
URLForKey:
Gets an NSURL out of the receiver.
- (NSURL *)URLForKey:(NSString *)key
Parameters
- key
The key for the value
Return Value
The NSURL value or nil
Declared In
FBSDKShareOpenGraphValueContainer.h
arrayForKey:
Gets an NSArray out of the receiver.
- (NSArray *)arrayForKey:(NSString *)key
Parameters
- key
The key for the value
Return Value
The NSArray value or nil
Declared In
FBSDKShareOpenGraphValueContainer.h
enumerateKeysAndObjectsUsingBlock:
Applies a given block object to the entries of the receiver.
- (void)enumerateKeysAndObjectsUsingBlock:(void ( ^ ) ( NSString *key , id object , BOOL *stop ))block
Parameters
- block
A block object to operate on entries in the receiver
Declared In
FBSDKShareOpenGraphValueContainer.h
keyEnumerator
Returns an enumerator object that lets you access each key in the receiver.
- (NSEnumerator *)keyEnumerator
Return Value
An enumerator object that lets you access each key in the receiver
Declared In
FBSDKShareOpenGraphValueContainer.h
numberForKey:
Gets an NSNumber out of the receiver.
- (NSNumber *)numberForKey:(NSString *)key
Parameters
- key
The key for the value
Return Value
The NSNumber value or nil
Declared In
FBSDKShareOpenGraphValueContainer.h
objectEnumerator
Returns an enumerator object that lets you access each value in the receiver.
- (NSEnumerator *)objectEnumerator
Return Value
An enumerator object that lets you access each value in the receiver
Declared In
FBSDKShareOpenGraphValueContainer.h
objectForKey:
Gets an FBSDKShareOpenGraphObject out of the receiver.
- (FBSDKShareOpenGraphObject *)objectForKey:(NSString *)key
Parameters
- key
The key for the value
Return Value
The FBSDKShareOpenGraphObject value or nil
Declared In
FBSDKShareOpenGraphValueContainer.h
objectForKeyedSubscript:
Enables subscript access to the values in the receiver.
- (id)objectForKeyedSubscript:(NSString *)key
Parameters
- key
The key for the value
Return Value
The value
Declared In
FBSDKShareOpenGraphValueContainer.h
parseProperties:
Parses properties out of a dictionary into the receiver.
- (void)parseProperties:(NSDictionary *)properties
Parameters
- properties
The properties to parse.
Declared In
FBSDKShareOpenGraphValueContainer.h
photoForKey:
Gets an FBSDKSharePhoto out of the receiver.
- (FBSDKSharePhoto *)photoForKey:(NSString *)key
Parameters
- key
The key for the value
Return Value
The FBSDKSharePhoto value or nil
Declared In
FBSDKShareOpenGraphValueContainer.h
removeObjectForKey:
Removes a value from the receiver for the specified key.
- (void)removeObjectForKey:(NSString *)key
Parameters
- key
The key for the value
Declared In
FBSDKShareOpenGraphValueContainer.h
setArray:forKey:
Sets an NSArray on the receiver.
- (void)setArray:(NSArray *)array forKey:(NSString *)key
Parameters
- array
The NSArray value
- key
The key for the value
Discussion
This method will throw if the array contains any values that is not an NSNumber, NSString, NSURL, FBSDKSharePhoto or FBSDKShareOpenGraphObject.
Declared In
FBSDKShareOpenGraphValueContainer.h
setNumber:forKey:
Sets an NSNumber on the receiver.
- (void)setNumber:(NSNumber *)number forKey:(NSString *)key
Parameters
- number
The NSNumber value
- key
The key for the value
Declared In
FBSDKShareOpenGraphValueContainer.h
setObject:forKey:
Sets an FBSDKShareOpenGraphObject on the receiver.
- (void)setObject:(FBSDKShareOpenGraphObject *)object forKey:(NSString *)key
Parameters
- object
The FBSDKShareOpenGraphObject value
- key
The key for the value
Declared In
FBSDKShareOpenGraphValueContainer.h
setPhoto:forKey:
Sets an FBSDKSharePhoto on the receiver.
- (void)setPhoto:(FBSDKSharePhoto *)photo forKey:(NSString *)key
Parameters
- photo
The FBSDKSharePhoto value
- key
The key for the value
Declared In
FBSDKShareOpenGraphValueContainer.h
setString:forKey:
Sets an NSString on the receiver.
- (void)setString:(NSString *)string forKey:(NSString *)key
Parameters
- string
The NSString value
- key
The key for the value
Declared In
FBSDKShareOpenGraphValueContainer.h