FBFrictionlessRecipientCache
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

Maintains a cache of friends that can recieve application requests from the user in using the frictionless feature of the requests web dialog.

This class follows the FBCacheDescriptor pattern used elsewhere in the SDK, and applications may call one of the prefetchAndCacheForSession methods to fetch a friend list prior to the point where a dialog is presented. The cache is also updated with each presentation of the request dialog using the cache instance.

Conforms to:FBWebDialogsDelegate
Inherits from:FBCacheDescriptor
Declared in:FBFrictionlessRecipientCache.h
ทรัพย์สิน
recipientIDs

An array containing the list of known FBIDs for recipients enabled for frictionless requests

@property (nonatomic, readwrite, copy) NSArray *recipientIDs;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h
วิธีการทันใจ
areFrictionlessRecipients:

Checks to see if a collection of users or FBIDs for users are known to be enabled for frictionless requestests

พารามิเตอร์คำอธิบาย
users

An NSArray of NSString, NSNumber of FBGraphUser objects representing users to check

- (BOOL) areFrictionlessRecipients:(NSArray*)users;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h
init

Initializes an empty cache instance

- (id) init;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h
isFrictionlessRecipient:

Checks to see if a given user or FBID for a user is known to be enabled for frictionless requestests

พารามิเตอร์คำอธิบาย
user

An NSString, NSNumber of FBGraphUser representing a user to check

- (BOOL) isFrictionlessRecipient:(id)user;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h
prefetchAndCacheForSession:

Issues a request and fills the cache with a list of users to use for frictionless requests

พารามิเตอร์คำอธิบาย
session

The session to use for the request; nil indicates that the Active Session should be used

- (void) prefetchAndCacheForSession:(FBSession *)session;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h
prefetchAndCacheForSession:completionHandler:

Issues a request and fills the cache with a list of users to use for frictionless requests

พารามิเตอร์คำอธิบาย
session

The session to use for the request; nil indicates that the Active Session should be used

handler

An optional completion handler, called when the request for cached users has completed. It can be useful to use the handler to enable UI or perform other request-related operations, after the cache is populated.

- (void)
prefetchAndCacheForSession: (FBSession *)session
completionHandler: (FBRequestHandler)handler;
ให้คำรับรองไว้ใน: FBFrictionlessRecipientCache.h