BDKUserInfoFetcher

@protocol BDKUserInfoFetcher <NSObject, NSCopying>

Classes conforming to this protocol must provide the user info display items for the user ids requested. BDKCallViewController instances will ask the fetcher provided during configuration, when it needs the call participants display information. Bandyer does not own user information like user’s first name, last name, email addresses and so on. It is bandyer client responsibility to provide those information through this protocol.

  • This method will be invoked when user display information are needed to be displayed or are being pre-fetched by the view controller. Beware, this method will be invoked an a background system queue, an it must invoke the completion block provided within a short period of time (less than half of a second), otherwise the values provided will be ignored and default values will be used instead.

    Declaration

    Objective-C

    - (void)fetchUsers:(nonnull NSArray<NSString *> *)aliases
            completion:(nonnull void (^)(
                           NSArray<BDKUserInfoDisplayItem *> *_Nullable))completion;

    Swift

    func fetchUsers(_ aliases: [String], completion: @escaping ([BDKUserInfoDisplayItem]?) -> Void)

    Parameters

    aliases

    The user id of the users for which display information must be fetched.

    completion

    The completion block that must be called when user display items have been fetched.