@@ -40,6 +40,12 @@ NS_ASSUME_NONNULL_BEGIN
4040 */
4141- (void )setNewHost : (NSString *)newHost ;
4242
43+ /* *
44+ * Sets a new URL session configuration to be used with all requests.
45+ * @param newURLSessionConfiguration The new URL session configuration
46+ */
47+ - (void )setNewURLSessionConfiguration : (NSURLSessionConfiguration *)newURLSessionConfiguration ;
48+
4349/* *
4450 * Sets a new app key to be used in new requests.
4551 * @discussion Before switching to the new app key, this method suspends Countly and resumes it immediately after.
@@ -50,12 +56,6 @@ NS_ASSUME_NONNULL_BEGIN
5056 */
5157- (void )setNewAppKey : (NSString *)newAppKey ;
5258
53- /* *
54- * @c setCustomHeaderFieldValue: method is deprecated. Please use @c URLSessionConfiguration property on @c CountlyConfig instead.
55- * @discussion Calling this method will have no effect.
56- */
57- - (void )setCustomHeaderFieldValue : (NSString *)customHeaderFieldValue DEPRECATED_MSG_ATTRIBUTE(" Use 'URLSessionConfiguration' property on CountlyConfig instead!" );
58-
5959/* *
6060 * Flushes request and event queues.
6161 * @discussion Flushes persistently stored request queue and events recorded but not converted to a request so far.
@@ -381,34 +381,6 @@ NS_ASSUME_NONNULL_BEGIN
381381 */
382382- (void )recordLocation : (CLLocationCoordinate2D)location city : (NSString * _Nullable)city ISOCountryCode : (NSString * _Nullable)ISOCountryCode IP : (NSString * _Nullable)IP ;
383383
384- /* *
385- * Records user's location info to be used for geo-location based push notifications and advanced user segmentation.
386- * @discussion By default, Countly Server uses a geo-ip database for acquiring user's location.
387- * @discussion If the app uses Core Location services and granted permission, a location with better accuracy can be provided using this method.
388- * @discussion This method overrides @c location property specified on initial configuration, and sends an immediate request.
389- * @param location User's location with latitude and longitude
390- */
391- - (void )recordLocation : (CLLocationCoordinate2D)location DEPRECATED_MSG_ATTRIBUTE(" Use 'recordLocation:city:ISOCountryCode:IP:' method instead!" );
392-
393- /* *
394- * Records user's city and country info to be used for geo-location based push notifications and advanced user segmentation.
395- * @discussion By default, Countly Server uses a geo-ip database for acquiring user's location.
396- * @discussion If the app has information about user's city and/or country, these information can be provided using this method.
397- * @discussion This method overrides @c city and @c ISOCountryCode properties specified on initial configuration, and sends an immediate request.
398- * @param city User's city
399- * @param ISOCountryCode User's ISO country code in ISO 3166-1 alpha-2 format
400- */
401- - (void )recordCity : (NSString *)city andISOCountryCode : (NSString *)ISOCountryCode DEPRECATED_MSG_ATTRIBUTE(" Use 'recordLocation:city:ISOCountryCode:IP:' method instead!" );
402-
403- /* *
404- * Records user's IP address to be used for geo-location based push notifications and advanced user segmentation.
405- * @discussion By default, Countly Server uses a geo-ip database for acquiring user's location.
406- * @discussion If the app needs to explicitly specify the IP address due to network requirements, it can be provided using this method.
407- * @discussion This method overrides @c IP property specified on initial configuration, and sends an immediate request.
408- * @param IP User's explicit IP address
409- */
410- - (void )recordIP : (NSString *)IP DEPRECATED_MSG_ATTRIBUTE(" Use 'recordLocation:city:ISOCountryCode:IP:' method instead!" );
411-
412384/* *
413385 * Disables geo-location based push notifications by clearing all existing location info.
414386 * @discussion Once disabled, geo-location based push notifications can be enabled again by calling @c recordLocation: or @c recordCity:andISOCountryCode: or @c recordIP: method.
0 commit comments