// Generated by Apple Swift version 4.0.3 effective-3.2.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif

#if __has_attribute(external_source_symbol)
# define SWIFT_STRINGIFY(str) #str
# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol))))
# define SWIFT_MODULE_NAMESPACE_POP _Pragma("clang attribute pop")
#else
# define SWIFT_MODULE_NAMESPACE_PUSH(module_name)
# define SWIFT_MODULE_NAMESPACE_POP
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#include <objc/NSObject.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus) || __cplusplus < 201103L
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2  __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3  __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4  __attribute__((__ext_vector_type__(4)));
#endif

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
#  define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
#  define SWIFT_CLASS_PROPERTY(...)
# endif
#endif

#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif

#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif

#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif

#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open)))
# else
#  define SWIFT_ENUM_ATTR
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if __has_feature(modules)
@import ObjectiveC;
@import CoreGraphics;
@import Foundation;
#endif

#import <XPMobileSDK/XPMobileSDK.h>

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"

SWIFT_MODULE_NAMESPACE_PUSH("XPMobileSDK")
@class NSDictionary;
@class XPSDKResponse;
@class NSError;
@class XPSDKRequest;
@class XPSDKServerInfo;
@class NSString;
@class NSDate;
@class XPSDKVideoConnection;
@class NSNumber;
@class XPSDKCameraPTZPreset;
@protocol XPMobileSDKConnectionDelegate;

SWIFT_CLASS("_TtC11XPMobileSDK11XPMobileSDK")
@interface XPMobileSDK : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSDictionary * _Nullable serverFeatures;)
+ (NSDictionary * _Nullable)serverFeatures SWIFT_WARN_UNUSED_RESULT;
/// Connect method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)connectWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
+ (XPSDKRequest * _Nonnull)disconnect SWIFT_WARN_UNUSED_RESULT;
+ (XPSDKRequest * _Nonnull)disconnectWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Connect with url method
/// \param urlString The URL String to which will connect
///
/// \param successHandler The success block which returns XPSDKResponse
///
/// \param failureHandler The failure block which returns NSError
///
+ (void)connectWithURLString:(NSString * _Nonnull)urlString successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Connect with url method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     urlString: The URL String to which will connect
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)connectWithServerInfo:(XPSDKServerInfo * _Nonnull)serverInfo successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Login method
/// \param username The username
///
/// \param password The password
///
/// \param successHandler The success block which returns XPSDKResponse
///
/// \param failureHandler The failure block which returns NSError
///
+ (XPSDKRequest * _Nonnull)loginForUsername:(NSString * _Nonnull)username password:(NSString * _Nonnull)password shouldSave:(BOOL)shouldSave successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Login method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     urlString: The URL String to which will connect
///   </li>
///   <li>
///     username: The username
///   </li>
///   <li>
///     password: The password
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)connectAndLoginForURLString:(NSString * _Nonnull)urlString username:(NSString * _Nonnull)username password:(NSString * _Nonnull)password shouldSave:(BOOL)shouldSave successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Login method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     urlString: The URL String to which will connect
///   </li>
///   <li>
///     username: The username
///   </li>
///   <li>
///     password: The password
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)connectAndLoginForServerInfo:(XPSDKServerInfo * _Nonnull)serverInfo username:(NSString * _Nonnull)username password:(NSString * _Nonnull)password shouldSave:(BOOL)shouldSave successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
+ (XPSDKRequest * _Nonnull)requestSecondStepAuthenticationPinWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
+ (XPSDKRequest * _Nonnull)verifySecondStepAuthenticationPinWithPin:(NSString * _Nonnull)pin successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     cameraID: the ID of camera for which the video stream is requested
///   </li>
///   <li>
///     size: The size of the video to be streamed
///   </li>
///   <li>
///     signal: The connection signal (live, playback or upload)
///   </li>
///   <li>
///     fps: Frames per second
///   </li>
///   <li>
///     userInitiatedDownsampling:
///   </li>
///   <li>
///     keyFramesOnly:
///   </li>
///   <li>
///     resizeSupported:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)requestStreamForCameraID:(XPSDKViewID _Nonnull)cameraID size:(CGSize)size method:(XPSDKVideoConnectionMethod)method signal:(XPSDKVideoConnectionSignal)signal fps:(NSInteger)fps compressionLevel:(NSInteger)compressionLevel userInitiatedDownsampling:(BOOL)userInitiatedDownsampling keyFramesOnly:(BOOL)keyFramesOnly resizeSupported:(BOOL)resizeSupported time:(NSDate * _Nullable)time usesTranscoding:(BOOL)usesTranscoding successHandler:(void (^ _Nonnull)(XPSDKResponse * _Nonnull, XPSDKVideoConnection * _Nonnull))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     request: The request that will be cancelled
///   </li>
/// </ul>
+ (void)cancelRequestStreamWithRequest:(XPSDKRequest * _Nonnull)request;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     request: The request that will be cancelled
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)changeStreamForVideoID:(NSString * _Nonnull)videoID fps:(NSInteger)fps successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     size:
///   </li>
///   <li>
///     sourceRect
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)changeStreamForVideoID:(NSString * _Nonnull)videoID size:(CGSize)size sourceRect:(CGRect)sourceRect successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     playSpeed:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)changeStreamForVideoID:(NSString * _Nonnull)videoID playSpeed:(float)playSpeed successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)previousSequenceForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)nextSequenceForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)previousFrameForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)nextFrameForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     timestamp:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)seekToTimestampForVideoID:(NSString * _Nonnull)videoID timestamp:(NSNumber * _Nonnull)timestamp seekType:(NSString * _Nonnull)seekType successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Cancel request stream method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     time:
///   </li>
///   <li>
///     seekType:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)seekToTimeForVideoID:(NSString * _Nonnull)videoID time:(NSDate * _Nonnull)time seekType:(NSString * _Nonnull)seekType successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Move camera method with ptz preset
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoID:
///   </li>
///   <li>
///     ptzPreset:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)moveCameraForVideoID:(NSString * _Nonnull)videoID ptzPreset:(XPSDKCameraPTZPreset * _Nonnull)ptzPreset successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Close video connection
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     videoConnection: the video connection that will be closed
///   </li>
///   <li>
///     size: The username
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)closeVideoConnectionWithVideoConnection:(XPSDKVideoConnection * _Nonnull)videoConnection successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Get all views and cameras method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (void)getAllViewsAndCamerasWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
/// Get subviews of view
/// \code
/// - Parameters:
/// - viewId: ID of view which subviews will be returned
/// - successHandler: The success block which returns XPSDKResponse
/// - failureHandler: The failure block which returns NSError
///
/// \endcode
+ (XPSDKRequest * _Nonnull)getSubviewsOfViewWithId:(NSString * _Nonnull)viewId successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Get outputs and events method
/// \code
/// - Parameters:
/// - cameraId: The camera ID for which the outputs and events will be returned
/// - successHandler: The success block which returns XPSDKResponse
/// - failureHandler: The failure block which returns NSError
///
/// \endcode
+ (XPSDKRequest * _Nonnull)getOutputsAndEventsForCameraId:(NSString * _Nonnull)cameraId successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Activate output
/// \code
/// - Parameters:
/// - objectId: The ID of Output/Event to be activated
/// - triggerType: The type of trigger (Output or Event)
/// - successHandler: The success block which returns XPSDKResponse
/// - failureHandler: The failure block which returns NSError
///
/// \endcode
+ (XPSDKRequest * _Nonnull)requestActivateForObjectId:(NSString * _Nonnull)objectId triggerType:(NSString * _Nonnull)triggerType successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Get alarms method
/// \code
/// - Parameters:
/// - count: number of the requested alarms
/// - timestamp: timestamp
/// - op: operator
/// - myAlarms: flag for requesting only my alarms
/// - excludedStates: states to be excluded
/// - excludedPriorities: priorites to be excluded
/// - successHandler: The success block which returns XPSDKResponse
/// - failureHandler: The failure block which returns NSError
///
/// \endcode
+ (XPSDKRequest * _Nonnull)getAlarmsWithCount:(NSInteger)count timestamp:(NSString * _Nonnull)timestamp op:(NSString * _Nonnull)op myAlarms:(BOOL)myAlarms excludedStates:(NSString * _Nonnull)excludedStates excludedPriorities:(NSString * _Nonnull)excludedPriorities successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Get a single alarm
/// \code
/// - Parameters:
/// - alarmId: the ID of the alarm which is requested
/// - successHandler: The success block which returns XPSDKResponse
/// - failureHandler: The failure block which returns NSError
///
/// \endcode
+ (XPSDKRequest * _Nonnull)getAlarmWithId:(NSString * _Nonnull)alarmId successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Get alarm data settings method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (XPSDKRequest * _Nonnull)getAlarmDataSettingsWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
/// Acknowledge Alarm method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     alarmId: The ID of the alarm to be acknowledged
///   </li>
///   <li>
///     successHandler: The success block which returns XPSDKResponse
///   </li>
///   <li>
///     failureHandler: The failure block which returns NSError
///   </li>
/// </ul>
+ (XPSDKRequest * _Nonnull)acknowledgeAlarmWithId:(NSString * _Nonnull)alarmId successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
+ (void)setAuthenticationComplete:(BOOL)authenticationComplete;
/// Add Delegate method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     delegate: Add delegate to set of delegates
///   </li>
/// </ul>
+ (void)addDelegate:(id <XPMobileSDKConnectionDelegate> _Nonnull)delegate;
/// Remove Delegate method
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     delegate: Remove delegate from set of delegates
///   </li>
/// </ul>
+ (void)removeDelegate:(id <XPMobileSDKConnectionDelegate> _Nonnull)delegate;
/// Stop All Sessions
+ (void)stopAllSessions;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(NSInteger, XPMobileSDKConnectError) {
  XPMobileSDKConnectErrorServerIdMissmatch = -1,
  XPMobileSDKConnectErrorNoPublicKey = -2,
  XPMobileSDKConnectErrorOemAccessDenied = -3,
  XPMobileSDKConnectErrorNoValidConnectios = -7,
  XPMobileSDKConnectErrorInsufficientUserRights = 25,
  XPMobileSDKConnectErrorEulaParameterNo = -999,
};

@class XPSDKConnection;

SWIFT_PROTOCOL("_TtP11XPMobileSDK29XPMobileSDKConnectionDelegate_")
@protocol XPMobileSDKConnectionDelegate
@optional
- (void)connectionDidLogIn:(XPSDKConnection * _Nonnull)connection;
- (void)connectiondidFailLoginWithError:(NSError * _Nonnull)error;
- (void)connectionDidFailConnectWithError:(NSError * _Nonnull)error;
- (void)connectionWillDisconnect:(XPSDKConnection * _Nonnull)connection;
- (void)connectionDidDisconnect:(XPSDKConnection * _Nonnull)connection;
- (void)connectionDidConnect:(XPSDKConnection * _Nonnull)connection;
- (void)connectionLostConnectivity:(XPSDKConnection * _Nonnull)connection;
- (void)connectionRestoredConnectivity:(XPSDKConnection * _Nonnull)connection;
- (void)connectionPopToRoot:(XPSDKConnection * _Nonnull)connection;
- (void)connectionCodeError:(XPSDKConnection * _Nonnull)connection;
- (void)connectionCodeRequired:(XPSDKConnection * _Nonnull)connection;
- (void)wrongConnectionIdWithError:(NSError * _Nonnull)error;
- (void)connectionReachabilityChanged:(NSNotification * _Nonnull)notification;
- (void)updateState:(NSNumber * _Nonnull)state;
- (void)didReceiveNotification:(NSDictionary * _Nonnull)notification;
- (void)receiveChallengeForTrustWithInfo:(NSDictionary<NSString *, id> * _Nonnull)info;
@end

@class NSMutableSet;
enum XPSDKConnectionState : NSInteger;
@class DHEncryption;
@class Reachability;

SWIFT_CLASS("_TtC11XPMobileSDK15XPSDKConnection")
@interface XPSDKConnection : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) XPSDKConnection * _Nonnull sharedConnection;)
+ (XPSDKConnection * _Nonnull)sharedConnection SWIFT_WARN_UNUSED_RESULT;
+ (void)setSharedConnection:(XPSDKConnection * _Nonnull)value;
@property (nonatomic, readonly, strong) NSMutableSet * _Nonnull delegates;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable features;
@property (nonatomic, copy) NSURL * _Nullable url;
@property (nonatomic, copy) NSString * _Nonnull urlEntPoint;
@property (nonatomic, copy) NSData * _Nullable certificateCookie;
@property (nonatomic) BOOL authenticationComplete;
@property (nonatomic) enum XPSDKConnectionState state;
@property (nonatomic, strong) DHEncryption * _Nullable dhe;
@property (nonatomic, copy) NSString * _Nullable id;
@property (nonatomic, strong) Reachability * _Nullable reachability;
@property (nonatomic, strong) XPSDKServerInfo * _Nullable serverInfo;
@property (nonatomic, strong) id _Nullable server;
@property (nonatomic, strong) id _Nullable oldConnection;
@property (nonatomic, readonly, strong) NSMutableSet * _Nonnull raceConnections;
- (void)setupWithURLString:(NSString * _Nonnull)urlString;
- (void)setupWithServerInfo:(XPSDKServerInfo * _Nonnull)serInfo;
- (void)setupWithUsername:(NSString * _Nonnull)username password:(NSString * _Nonnull)password shouldSave:(BOOL)shouldSave;
- (void)addRaceConnection:(XPSDKConnection * _Nullable)raceConnection;
- (void)addRequset:(XPSDKRequest * _Nullable)request;
- (void)addDelegate:(id <XPMobileSDKConnectionDelegate> _Nullable)delegate;
- (void)removeDelegate:(id <XPMobileSDKConnectionDelegate> _Nullable)delegate;
- (void)explicitSetOfConnectionState:(NSNumber * _Nonnull)state;
- (void)updateNetworkIndicator;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


@interface XPSDKConnection (SWIFT_EXTENSION(XPMobileSDK))
- (XPSDKRequest * _Nonnull)connectWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
@end


@interface XPSDKConnection (SWIFT_EXTENSION(XPMobileSDK))
- (XPSDKRequest * _Nullable)loginWithSuccessHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler SWIFT_WARN_UNUSED_RESULT;
@end


@interface XPSDKConnection (SWIFT_EXTENSION(XPMobileSDK))
- (void)requestStreamForCameraID:(XPSDKViewID _Nonnull)cameraID size:(CGSize)size method:(XPSDKVideoConnectionMethod)method signal:(XPSDKVideoConnectionSignal)signal fps:(NSInteger)fps compressionLevel:(NSInteger)compressionLevel userInitiatedDownsampling:(BOOL)userInitiatedDownsampling keyFramesOnly:(BOOL)keyFramesOnly resizeSupported:(BOOL)resizeSupported time:(NSDate * _Nullable)time usesTranscoding:(BOOL)usesTranscoding successHandler:(void (^ _Nonnull)(XPSDKResponse * _Nonnull, XPSDKVideoConnection * _Nonnull))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)cancelRequestStreamWithRequest:(XPSDKRequest * _Nonnull)request;
- (void)closeVideoConnectionWithVideoConnection:(XPSDKVideoConnection * _Nonnull)videoConnection successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)purgeVideoConnections;
- (void)changeStreamForVideoID:(NSString * _Nonnull)videoID fps:(NSInteger)fps successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)changeStreamForVideoID:(NSString * _Nonnull)videoID size:(CGSize)size sourceRect:(CGRect)sourceRect successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)changeStreamForVideoID:(NSString * _Nonnull)videoID playSpeed:(float)playSpeed successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)previousSequenceForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)nextSequenceForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)previousFrameForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)nextFrameForVideoID:(NSString * _Nonnull)videoID successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)seekToTimestampForVideoID:(NSString * _Nonnull)videoID timestamp:(NSNumber * _Nonnull)timestamp seekType:(NSString * _Nonnull)seekType successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)seekToTimeForVideoID:(NSString * _Nonnull)videoID time:(NSDate * _Nonnull)time seekType:(NSString * _Nonnull)seekType successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
- (void)moveCameraForVideoID:(NSString * _Nonnull)videoID ptzPreset:(XPSDKCameraPTZPreset * _Nonnull)ptzPreset successHandler:(void (^ _Nullable)(XPSDKResponse * _Null_unspecified))successHandler failureHandler:(void (^ _Nullable)(NSError * _Null_unspecified))failureHandler;
@end

typedef SWIFT_ENUM(NSInteger, XPSDKConnectionState) {
  XPSDKConnectionStateIdle = 0,
/// set only before connecting
  XPSDKConnectionStateConnecting = 1,
/// set when we call connect and wait for response from server
  XPSDKConnectionStateConnected = 2,
/// set when we have connected and are about to send credentials
  XPSDKConnectionStateLoggingIn = 3,
/// set when we exchanged keys and set login credentials
  XPSDKConnectionStateWorking = 4,
/// set when we are logged in and successfully exchanging commands
  XPSDKConnectionStateDisconnecting = 5,
/// set when we are disconnecting by the user
  XPSDKConnectionStateDisconnected = 6,
/// set when we have been disconnected (by the user or external factors) or failed connect/login
  XPSDKConnectionStateLostConnection = 7,
};

@class NSURLSession;
@class NSURLAuthenticationChallenge;
@class NSURLCredential;

SWIFT_CLASS("_TtC11XPMobileSDK12XPSDKRequest")
@interface XPSDKRequest : NSObject <NSURLSessionDelegate>
@property (nonatomic, readonly, copy) NSString * _Nonnull commandName;
- (void)cancelSession;
- (void)URLSession:(NSURLSession * _Nonnull)session didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(enum NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSArray;
@protocol NSCopying;
@class NSCoder;

SWIFT_CLASS("_TtC11XPMobileSDK13XPSDKResponse")
@interface XPSDKResponse : NSDictionary
@property (nonatomic, readonly, strong) NSDictionary * _Nullable response;
@property (nonatomic, readonly) BOOL isResponse;
@property (nonatomic, readonly) BOOL isProcessing;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable items;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable parameters;
@property (nonatomic, readonly, strong) NSArray * _Nullable subItems;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable sequences;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable exports;
@property (nonatomic, readonly, strong) NSDictionary * _Nullable notification;
@property (nonatomic, readonly, strong) NSArray * _Nullable outputsAndEvents;
@property (nonatomic, readonly, strong) NSArray * _Nullable users;
@property (nonatomic, readonly, strong) NSError * _Nullable error;
@property (nonatomic, readonly, strong) NSArray * _Nullable responseItems;
- (NSArray * _Nullable)endpoints SWIFT_WARN_UNUSED_RESULT;
- (NSArray * _Nullable)alarms SWIFT_WARN_UNUSED_RESULT;
- (NSArray * _Nullable)alarmDataSettings SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithObjects:(id _Nonnull const * _Null_unspecified)objects forKeys:(id <NSCopying> _Nonnull const * _Null_unspecified)keys count:(NSUInteger)cnt OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC11XPMobileSDK15XPSDKServerInfo")
@interface XPSDKServerInfo : NSObject
@property (nonatomic, copy) NSString * _Nullable serverHost;
@property (nonatomic, strong) NSNumber * _Nullable serverPort;
@property (nonatomic) BOOL isSecureConnection;
@property (nonatomic, copy) NSString * _Nullable serviceAlias;
@property (nonatomic, copy) NSString * _Nullable communicationPath;
- (nonnull instancetype)initWithHost:(NSString * _Nonnull)host port:(NSNumber * _Nonnull)port;
- (NSURL * _Nonnull)communicationURL SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_MODULE_NAMESPACE_POP
#pragma clang diagnostic pop
