Skip to content

Commit 891b87f

Browse files
committed
Quickblox.framework v 2.14
1 parent 42f3563 commit 891b87f

File tree

6 files changed

+89
-12
lines changed

6 files changed

+89
-12
lines changed

Framework/Quickblox.framework/Headers/QBCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#import <Quickblox/QBResponsePage.h>
1515
#import <Quickblox/QBGeneralResponsePage.h>
1616
#import <Quickblox/QBLogger.h>
17-
17+
#import <Quickblox/QBDarwinNotificationCenter.h>
1818
#import <Quickblox/QBConnection.h>
1919
#import <Quickblox/QBRequest.h>
2020
#import <Quickblox/QBRequestStatus.h>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//
2+
// QBDarwinNotificationCenter.h
3+
// Quickblox
4+
//
5+
// Created by Andrey Ivanov on 30/10/2017.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
/**
13+
A notification that enables the broadcast of information to registered observers
14+
between extensions with the same QuickBlox application id.
15+
16+
@discussion The Darwin notification center is a system mechanism on iOS and OS X to send signals across process boundaries. It's useful to exchange information between two or more running processes such as an iPhone app notifying a WatchKit/Share/Siri.... Extension that new data has arrived.
17+
Is based on Darwin notification center. @see https://developer.apple.com/library/content/documentation/Darwin/Conceptual/MacOSXNotifcationOv/DarwinNotificationConcepts/DarwinNotificationConcepts.html#//apple_ref/doc/uid/TP40005947-CH5-SW1
18+
*/
19+
@interface QBDarwinNotificationCenter : NSObject
20+
21+
/**
22+
Returns the process’s default darwin notification center
23+
*/
24+
@property (nonatomic, readonly, class) QBDarwinNotificationCenter *defaultCenter;
25+
26+
/**
27+
Adds an entry to the receiver’s
28+
29+
@param name The name of the notification for which to register the observer; that is,
30+
only notifications with this name are delivered to the observer.
31+
@param block The block to be executed when the notification is received.
32+
33+
@return An opaque object to act as the observer.
34+
*/
35+
- (id <NSObject>)addObserverForName:(NSNotificationName)name usingBlock:(dispatch_block_t)block;
36+
37+
/**
38+
Removes all the entries specifying a given observer.
39+
40+
@param observer The observer to remove. Must not be nil.
41+
*/
42+
- (void)removeObserver:(id)observer;
43+
44+
/**
45+
Posts a given notification to the receiver.
46+
47+
@param name The notification to post. This value must not be nil.
48+
*/
49+
- (void)postNotificationName:(NSNotificationName)name;
50+
51+
@end
52+
53+
NS_ASSUME_NONNULL_END

Framework/Quickblox.framework/Headers/QBRequest+QBAddressBook.h

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@
1010

1111
@class QBAddressBookContact;
1212
@class QBAddressBookUpdates;
13+
@class QBUUser;
1314

1415
NS_ASSUME_NONNULL_BEGIN
1516

17+
@interface QBRequest (QBAddressBook)
18+
1619
typedef void(^qb_response_address_book_block_t)(NSArray<QBAddressBookContact *> *contacts);
1720
typedef void(^qb_response_address_book_updates_block_t)(QBAddressBookUpdates *updates);
18-
19-
@interface QBRequest (QBAddressBook)
21+
typedef void(^qb_response_registered_users_block_t)(NSArray<QBUUser *> *users);
2022

2123
/**
2224
Retrieves address book contacts for specified user device.
23-
24-
@param udid User's device identifier. If specified all operations will be in this context. Max length 64 symbols.
25-
@param successBlock Block with address book contact items.
26-
@param errorBlock Block with response instance if request failed.
25+
26+
@param udid User's device identifier. If specified - all operations will be in this context. Max length 64 symbols.
27+
@param successBlock The block to be executed when address book contact items are retrieved.
28+
@param errorBlock The block to be executed when the request is failed.
2729
@return An instance of QBRequest for cancel operation mainly.
2830
*/
2931
+ (QBRequest *)addressBookWithUdid:(nullable NSString *)udid
@@ -32,19 +34,34 @@ typedef void(^qb_response_address_book_updates_block_t)(QBAddressBookUpdates *up
3234

3335
/**
3436
Uploads fresh address book (force update).
35-
36-
@param udid User's device identifier. If specified all operations will be in this context. Max length 64 symbols.
37+
38+
@param udid User's device identifier. If specified - all operations will be in this context. Max length 64 symbols.
3739
@param addressBook Set with address book contact items (phone - unique)
3840
@param force Rewrite mode. If set YES all previous contacts for device context will be replaced by new ones.
39-
@param successBlock Block with address book updates.
40-
@param errorBlock Block with response instance if request failed.
41+
@param successBlock The block to be executed after successfuly address book updates.
42+
@param errorBlock The block to be executed when the request is failed.
4143
@return An instance of QBRequest for cancel operation mainly.
4244
*/
4345
+ (QBRequest *)uploadAddressBookWithUdid:(nullable NSString *)udid
4446
addressBook:(nullable NSOrderedSet<QBAddressBookContact *> *)addressBook
4547
force:(BOOL)force
4648
successBlock:(nullable qb_response_address_book_updates_block_t)successBlock
4749
errorBlock:(nullable qb_response_block_t)errorBlock;
50+
51+
/**
52+
Retrieves registered users from address book
53+
54+
@param udid User's device identifier. If specified - all operations will be in this context. Max length 64 symbols.
55+
@param compact if YES - server will return only `id` and `phone` fields of User. Otherwise - all User's fields will be returned.
56+
@param successBlock The block to be executed when registered users are retrieved.
57+
@param errorBlock The block to be executed when the request is failed.
58+
@return An instance of QBRequest for cancel operation mainly.
59+
*/
60+
+ (QBRequest *)registeredUsersFromAddressBookWithUdid:(nullable NSString *)udid
61+
isCompact:(BOOL)compact
62+
successBlock:(nullable qb_response_registered_users_block_t)successBlock
63+
errorBlock:(nullable qb_response_block_t)errorBlock;
64+
4865
@end
4966

5067
NS_ASSUME_NONNULL_END

Framework/Quickblox.framework/Headers/QBSession.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
NS_ASSUME_NONNULL_BEGIN
1212

13+
//Posted immediately after logout from quickblox and session destruction;
14+
FOUNDATION_EXPORT NSNotificationName const kQBLogoutNotification;
15+
1316
/**
1417
* QBSession class interface.
1518
* This class represents session information.
@@ -21,6 +24,10 @@ NS_ASSUME_NONNULL_BEGIN
2124
*/
2225
@property (nonatomic, strong, readonly, class) QBSession *currentSession;
2326

27+
28+
/**
29+
Returns YES if token has expired
30+
*/
2431
@property (assign, nonatomic, readonly) BOOL tokenHasExpired;
2532

2633
/**

Framework/Quickblox.framework/Headers/Quickblox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
#import <Quickblox/QBChatHeader.h>
1717
#import <Quickblox/QBAddressBookHeader.h>
1818

19-
//! Framework version 2.13
19+
//! Framework version 2.14
2020
FOUNDATION_EXPORT NSString * const QuickbloxFrameworkVersion;
129 KB
Binary file not shown.

0 commit comments

Comments
 (0)