/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #import #import NS_ASSUME_NONNULL_BEGIN @interface FBSDKURLSession : NSObject @property (nullable, atomic, strong) NSURLSession *session; @property (nullable, nonatomic, weak) id delegate; @property (nullable, nonatomic, retain) NSOperationQueue *delegateQueue; - (instancetype)init DEPRECATED_MSG_ATTRIBUTE("`init` is deprecated and will be removed in the next major release. Please use one of the other available initializers"); + (instancetype)new DEPRECATED_MSG_ATTRIBUTE("`new` is deprecated and will be removed in the next major release. Please use one of the other available initializers"); - (instancetype)initWithDelegate:(id)delegate delegateQueue:(NSOperationQueue *)delegateQueue; - (void)executeURLRequest:(NSURLRequest *)request completionHandler:(FBSDKURLSessionTaskBlock)handler; - (void)updateSessionWithBlock:(dispatch_block_t)block; - (void)invalidateAndCancel; - (BOOL)valid; @end NS_ASSUME_NONNULL_END