2026-10-30 15:07:27 +03:00
|
|
|
|
#if 0
|
|
|
|
|
|
#elif defined(__arm64__) && __arm64__
|
|
|
|
|
|
// Generated by Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)
|
|
|
|
|
|
#ifndef INSIGHTSDK_SWIFT_H
|
|
|
|
|
|
#define INSIGHTSDK_SWIFT_H
|
|
|
|
|
|
#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_include(<swift/objc-prologue.h>)
|
|
|
|
|
|
# include <swift/objc-prologue.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
|
|
|
|
#if defined(__OBJC__)
|
|
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
|
|
#endif // defined(__OBJC__)
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
#include <new>
|
|
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
#else
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
|
|
|
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
|
|
|
|
# include <ptrauth.h>
|
|
|
|
|
|
#else
|
|
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
|
|
|
|
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
|
|
|
|
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
# ifndef __ptrauth_swift_class_method_pointer
|
|
|
|
|
|
# define __ptrauth_swift_class_method_pointer(x)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(SWIFT_TYPEDEFS)
|
|
|
|
|
|
# define SWIFT_TYPEDEFS 1
|
|
|
|
|
|
# if __has_include(<uchar.h>)
|
|
|
|
|
|
# include <uchar.h>
|
|
|
|
|
|
# elif !defined(__cplusplus)
|
|
|
|
|
|
typedef unsigned char char8_t;
|
|
|
|
|
|
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 !defined(SWIFT_RUNTIME_NAME)
|
|
|
|
|
|
# if __has_attribute(objc_runtime_name)
|
|
|
|
|
|
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_RUNTIME_NAME(X)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_COMPILE_NAME)
|
|
|
|
|
|
# if __has_attribute(swift_name)
|
|
|
|
|
|
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_COMPILE_NAME(X)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_METHOD_FAMILY)
|
|
|
|
|
|
# if __has_attribute(objc_method_family)
|
|
|
|
|
|
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_METHOD_FAMILY(X)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_NOESCAPE)
|
|
|
|
|
|
# if __has_attribute(noescape)
|
|
|
|
|
|
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_NOESCAPE
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
|
|
|
|
# if __has_attribute(ns_consumed)
|
|
|
|
|
|
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_RELEASES_ARGUMENT
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
|
|
|
|
# if __has_attribute(warn_unused_result)
|
|
|
|
|
|
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_WARN_UNUSED_RESULT
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_NORETURN)
|
|
|
|
|
|
# if __has_attribute(noreturn)
|
|
|
|
|
|
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_NORETURN
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#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_RESILIENT_CLASS)
|
|
|
|
|
|
# if __has_attribute(objc_class_stub)
|
|
|
|
|
|
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
|
|
|
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
|
|
|
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
|
|
|
|
# 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 __has_attribute(enum_extensibility)
|
|
|
|
|
|
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_ENUM)
|
|
|
|
|
|
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
|
|
|
|
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
|
|
|
|
# if __has_feature(generalized_swift_name)
|
|
|
|
|
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
|
|
|
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_ENUM_TAG)
|
|
|
|
|
|
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
|
|
|
|
# define SWIFT_ENUM_TAG enum
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_ENUM_TAG
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
|
|
|
|
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
|
|
|
|
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _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_AVAILABILITY_DOMAIN)
|
|
|
|
|
|
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_WEAK_IMPORT)
|
|
|
|
|
|
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
|
|
|
|
#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 !defined(SWIFT_DEPRECATED_OBJC)
|
|
|
|
|
|
# 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
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(__OBJC__)
|
|
|
|
|
|
#if !defined(IBSegueAction)
|
|
|
|
|
|
# define IBSegueAction
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_EXTERN)
|
|
|
|
|
|
# if defined(__cplusplus)
|
|
|
|
|
|
# define SWIFT_EXTERN extern "C"
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_EXTERN extern
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_CALL)
|
|
|
|
|
|
# define SWIFT_CALL __attribute__((swiftcall))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
|
|
|
|
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_CONTEXT)
|
|
|
|
|
|
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_ERROR_RESULT)
|
|
|
|
|
|
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
# define SWIFT_NOEXCEPT noexcept
|
|
|
|
|
|
#else
|
|
|
|
|
|
# define SWIFT_NOEXCEPT
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
|
|
|
|
# if __has_attribute(always_inline)
|
|
|
|
|
|
# if __has_attribute(nodebug)
|
|
|
|
|
|
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
|
|
|
|
# endif
|
|
|
|
|
|
# else
|
|
|
|
|
|
# define SWIFT_C_INLINE_THUNK inline
|
|
|
|
|
|
# endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
|
|
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
|
|
|
|
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#else
|
|
|
|
|
|
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
|
|
|
|
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !__has_feature(nullability)
|
|
|
|
|
|
# define _Nonnull
|
|
|
|
|
|
# define _Nullable
|
|
|
|
|
|
# define _Null_unspecified
|
|
|
|
|
|
#elif !defined(__OBJC__)
|
|
|
|
|
|
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if !__has_feature(nullability_nullable_result)
|
|
|
|
|
|
# define _Nullable_result _Nullable
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if __has_feature(objc_modules)
|
|
|
|
|
|
#if __has_warning("-Watimport-in-framework-header")
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#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"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
|
|
|
|
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
|
|
|
# pragma push_macro("any")
|
|
|
|
|
|
# undef any
|
|
|
|
|
|
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="InsightSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
|
|
|
|
# pragma pop_macro("any")
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
} // extern "C"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
|
|
|
# pragma clang attribute pop
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(__OBJC__)
|
|
|
|
|
|
#if __has_feature(objc_modules)
|
|
|
|
|
|
#if __has_warning("-Watimport-in-framework-header")
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
@import Foundation;
|
|
|
|
|
|
@import ObjectiveC;
|
|
|
|
|
|
@import UIKit;
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif // defined(__OBJC__)
|
|
|
|
|
|
#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"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
|
|
|
|
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
|
|
|
# pragma push_macro("any")
|
|
|
|
|
|
# undef any
|
|
|
|
|
|
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="InsightSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
|
|
|
|
# pragma pop_macro("any")
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__OBJC__)
|
|
|
|
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK8APIError")
|
|
|
|
|
|
@interface APIError : NSObject
|
|
|
|
|
|
@property (nonatomic, readonly) NSInteger code;
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Nonnull detail;
|
|
|
|
|
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull errorDomain;)
|
|
|
|
|
|
+ (NSString * _Nonnull)errorDomain SWIFT_WARN_UNUSED_RESULT;
|
|
|
|
|
|
@property (nonatomic, readonly) NSInteger errorCode;
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull errorUserInfo;
|
|
|
|
|
|
- (nonnull instancetype)initWithCode:(NSInteger)code detail:(NSString * _Nonnull)detail OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK5Value")
|
|
|
|
|
|
@interface Value : NSObject
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK12BooleanValue")
|
|
|
|
|
|
@interface BooleanValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(BOOL)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK11DoubleValue")
|
|
|
|
|
|
@interface DoubleValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(double)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK5Event")
|
|
|
|
|
|
@interface Event : NSObject
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK14EventParameter")
|
|
|
|
|
|
@interface EventParameter : NSObject
|
|
|
|
|
|
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name value:(Value * _Nonnull)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@class SdkConfiguration;
|
|
|
|
|
|
@class User;
|
|
|
|
|
|
SWIFT_ENUM_FWD_DECL(NSInteger, SdkStartState)
|
|
|
|
|
|
@class CLLocation;
|
|
|
|
|
|
@class NSError;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK7Insight")
|
|
|
|
|
|
@interface Insight : NSObject
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Nonnull build;
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Nullable pushToken;
|
|
|
|
|
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Insight * _Nonnull shared;)
|
|
|
|
|
|
+ (Insight * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
- (void)startWithConfig:(SdkConfiguration * _Nullable)config user:(User * _Nullable)user completion:(void (^ _Nullable)(enum SdkStartState))completion;
|
|
|
|
|
|
- (void)restartWithUser:(User * _Nullable)user config:(SdkConfiguration * _Nullable)config;
|
|
|
|
|
|
/// Stops the SDK: collection stops at once, and the SDK sends what it holds for at most 5 seconds in the
|
|
|
|
|
|
/// background. Unsent data stays queued and leaves after the next <code>start</code>.
|
|
|
|
|
|
- (void)stop;
|
|
|
|
|
|
/// <code>stop()</code>, then <code>completion</code> once on the main queue when the SDK has sent what it could: at most 5 seconds
|
|
|
|
|
|
/// after the call, at once when nothing was started. Objective-C: <code>-[Insight stopWithCompletion:]</code>.
|
|
|
|
|
|
- (void)stopWithCompletion:(void (^ _Nonnull)(void))completion;
|
|
|
|
|
|
- (void)updateLastLocationTo:(CLLocation * _Nonnull)newLocation;
|
|
|
|
|
|
- (void)setDefaultEventParameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters;
|
|
|
|
|
|
/// Method to track built in events.
|
|
|
|
|
|
- (void)logEvent:(Event * _Nonnull)event callback:(void (^ _Nullable)(APIError * _Nullable))callback;
|
|
|
|
|
|
/// Asks screen recording for a capture of what is on screen now, for a change the SDK cannot see, such as a
|
|
|
|
|
|
/// view your app swaps on a state change. Callable from any thread; it returns at once. The capture is not
|
|
|
|
|
|
/// guaranteed: the normal throttle and recording rules still apply, and a call before <code>start</code>, while stopped
|
|
|
|
|
|
/// or in the background does nothing and is not kept for later.
|
|
|
|
|
|
- (void)requestScreenRecordingCapture;
|
|
|
|
|
|
/// Method to track manuel events. Used for custom events
|
|
|
|
|
|
- (void)logEvent:(NSString * _Nonnull)name parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters callback:(void (^ _Nullable)(APIError * _Nullable))callback;
|
|
|
|
|
|
- (void)logHealthMessage:(NSString * _Nonnull)message;
|
|
|
|
|
|
/// Objective-C specific
|
|
|
|
|
|
- (void)logHealthMessageWithFormat:(NSString * _Nonnull)format :(NSObject * _Nonnull)args;
|
|
|
|
|
|
/// Objective-C specific
|
|
|
|
|
|
- (void)logHealthMessageWithFormat:(NSString * _Nonnull)format arguments:(NSObject * _Nonnull)args;
|
|
|
|
|
|
- (void)clearHealthMessages;
|
|
|
|
|
|
- (void)clearCrashReports;
|
|
|
|
|
|
/// Erases the SDK’s stored user data on this device: pending crash reports and every stored screen recording,
|
|
|
|
|
|
/// with any recording upload in flight abandoned first. Data the server already accepted needs a server-side
|
|
|
|
|
|
/// deletion. Callable from any thread; a call off the main thread waits for the main thread.
|
|
|
|
|
|
- (void)clearStoredData;
|
|
|
|
|
|
/// Purges screen recordings and nothing else, as thoroughly as <code>clearStoredData()</code>: the buffer and the queue
|
|
|
|
|
|
/// on disk, the carried host session id and any upload in flight. Works without a start, since an earlier
|
|
|
|
|
|
/// process’s recordings are what a deletion request has to reach. Callable from any thread; a call off the
|
|
|
|
|
|
/// main thread waits for the main thread.
|
|
|
|
|
|
- (void)clearScreenRecordings;
|
|
|
|
|
|
/// Set a custom key and value to be included in crash reports
|
|
|
|
|
|
/// \param value The value to set (String)
|
|
|
|
|
|
///
|
|
|
|
|
|
/// \param key The key for the value (maximum 64 characters)
|
|
|
|
|
|
///
|
|
|
|
|
|
- (void)setCustomHealthValue:(NSString * _Nonnull)value forKey:(NSString * _Nonnull)key;
|
|
|
|
|
|
/// Set multiple custom keys and values at once
|
|
|
|
|
|
/// \param keysAndValues Dictionary of keys and values to set
|
|
|
|
|
|
///
|
|
|
|
|
|
- (void)setCustomHealthKeysAndValues:(NSDictionary<NSString *, NSString *> * _Nonnull)keysAndValues;
|
|
|
|
|
|
- (void)record:(NSError * _Nonnull)error;
|
|
|
|
|
|
- (void)stopCrashReporting;
|
|
|
|
|
|
- (void)startCrashReporting;
|
|
|
|
|
|
- (void)clearRequestQueues;
|
|
|
|
|
|
/// Force trigger sending all items currently in the batch queue.
|
|
|
|
|
|
- (void)flushBatchRequests;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK35InsightEventAdvertisingAdImpression")
|
|
|
|
|
|
@interface InsightEventAdvertisingAdImpression : Event
|
|
|
|
|
|
/// Platform serving the ad (e.g., MoPub, IronSource)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull platform;
|
|
|
|
|
|
/// Ad format (e.g., Banner, Interstitial)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull format;
|
|
|
|
|
|
/// Source of the ad
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
/// Name of the ad unit
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable unitName;
|
|
|
|
|
|
- (nonnull instancetype)initWithPlatform:(NSString * _Nonnull)platform format:(NSString * _Nonnull)format source:(NSString * _Nonnull)source unitName:(NSString * _Nullable)unitName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK41InsightEventAdvertisingCampaignImpression")
|
|
|
|
|
|
@interface InsightEventAdvertisingCampaignImpression : Event
|
|
|
|
|
|
/// Campaign ID
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
/// Campaign name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull campaignName;
|
|
|
|
|
|
/// Source of the campaign traffic
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
/// Marketing medium
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable medium;
|
|
|
|
|
|
/// Search terms used
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable searchTerm;
|
|
|
|
|
|
/// Campaign content
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable content;
|
|
|
|
|
|
/// Ad network click ID
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable adNetworkClickId;
|
|
|
|
|
|
/// Custom campaign parameter
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable cp1;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id campaignName:(NSString * _Nonnull)campaignName source:(NSString * _Nonnull)source medium:(NSString * _Nullable)medium searchTerm:(NSString * _Nullable)searchTerm content:(NSString * _Nullable)content adNetworkClickId:(NSString * _Nullable)adNetworkClickId cp1:(NSString * _Nullable)cp1 parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@class InsightItem;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK35InsightEventECommerceAddPaymentInfo")
|
|
|
|
|
|
@interface InsightEventECommerceAddPaymentInfo : Event
|
|
|
|
|
|
/// Transaction amount
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Payment method (e.g., Visa)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull paymentType;
|
|
|
|
|
|
/// List of items involved in the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nullable items;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currency:(NSString * _Nonnull)currency paymentType:(NSString * _Nonnull)paymentType items:(NSArray<InsightItem *> * _Nullable)items parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK36InsightEventECommerceAddShippingInfo")
|
|
|
|
|
|
@interface InsightEventECommerceAddShippingInfo : Event
|
|
|
|
|
|
/// Shipping cost
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// Currency for the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// List of items involved in the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nullable items;
|
|
|
|
|
|
/// Coupon code used for the purchase
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable coupon;
|
|
|
|
|
|
/// Selected shipping tier (e.g., Ground, Air)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable shippingTier;
|
|
|
|
|
|
- (nonnull instancetype)initWithCost:(double)cost currency:(NSString * _Nonnull)currency items:(NSArray<InsightItem *> * _Nullable)items coupon:(NSString * _Nullable)coupon shippingTier:(NSString * _Nullable)shippingTier parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK30InsightEventECommerceAddToCart")
|
|
|
|
|
|
@interface InsightEventECommerceAddToCart : Event
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable currency;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK34InsightEventECommerceAddToWishlist")
|
|
|
|
|
|
@interface InsightEventECommerceAddToWishlist : Event
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable currency;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK34InsightEventECommerceBeginCheckout")
|
|
|
|
|
|
@interface InsightEventECommerceBeginCheckout : Event
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The transaction value for the items added to the cart
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable coupon;
|
|
|
|
|
|
- (nonnull instancetype)initWithItems:(NSArray<InsightItem *> * _Nonnull)items cost:(double)cost currency:(NSString * _Nonnull)currency coupon:(NSString * _Nullable)coupon parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventECommerceRefund")
|
|
|
|
|
|
@interface InsightEventECommerceRefund : Event
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The transaction value for the items added to the cart
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable affiliation;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable transactionId;
|
|
|
|
|
|
- (nonnull instancetype)initWithItems:(NSArray<InsightItem *> * _Nonnull)items cost:(double)cost currency:(NSString * _Nonnull)currency affiliation:(NSString * _Nullable)affiliation transactionId:(NSString * _Nullable)transactionId parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK35InsightEventECommerceRemoveFromCart")
|
|
|
|
|
|
@interface InsightEventECommerceRemoveFromCart : Event
|
|
|
|
|
|
/// List of items removed from the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable currency;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK29InsightEventECommerceViewCart")
|
|
|
|
|
|
@interface InsightEventECommerceViewCart : Event
|
|
|
|
|
|
/// The transaction value for the items
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
- (nonnull instancetype)initWithItems:(NSArray<InsightItem *> * _Nonnull)items cost:(double)cost currency:(NSString * _Nonnull)currency parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK29InsightEventECommerceViewItem")
|
|
|
|
|
|
@interface InsightEventECommerceViewItem : Event
|
|
|
|
|
|
/// List of items added to the cart
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
/// The transaction value for the items
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// The currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
- (nonnull instancetype)initWithItems:(NSArray<InsightItem *> * _Nonnull)items cost:(double)cost currency:(NSString * _Nonnull)currency parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK33InsightEventECommerceViewItemList")
|
|
|
|
|
|
@interface InsightEventECommerceViewItemList : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull listName;
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id listName:(NSString * _Nonnull)listName items:(NSArray<InsightItem *> * _Nonnull)items parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK41InsightEventFinancialTransactionCompleted")
|
|
|
|
|
|
@interface InsightEventFinancialTransactionCompleted : Event
|
|
|
|
|
|
/// Amount of the initiated transaction
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Currency of the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Transaction type (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category;
|
|
|
|
|
|
/// Temporary transaction identifier
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable tempTransactionId;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currency:(NSString * _Nonnull)currency category:(NSString * _Nullable)category tempTransactionId:(NSString * _Nullable)tempTransactionId parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK38InsightEventFinancialTransactionFailed")
|
|
|
|
|
|
@interface InsightEventFinancialTransactionFailed : Event
|
|
|
|
|
|
/// Amount of the initiated transaction
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Currency of the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Transaction type (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category;
|
|
|
|
|
|
/// Temporary transaction identifier
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable tempTransactionId;
|
|
|
|
|
|
/// Error Code
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable errorCode;
|
|
|
|
|
|
/// Error Code
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable errorMessage;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currency:(NSString * _Nonnull)currency category:(NSString * _Nullable)category tempTransactionId:(NSString * _Nullable)tempTransactionId errorCode:(NSString * _Nullable)errorCode errorMessage:(NSString * _Nullable)errorMessage parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK41InsightEventFinancialTransactionInitiated")
|
|
|
|
|
|
@interface InsightEventFinancialTransactionInitiated : Event
|
|
|
|
|
|
/// Amount of the initiated transaction
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Currency of the transaction
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Transaction type (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category;
|
|
|
|
|
|
/// Temporary transaction identifier
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable tempTransactionId;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currency:(NSString * _Nonnull)currency category:(NSString * _Nullable)category tempTransactionId:(NSString * _Nullable)tempTransactionId parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK31InsightEventGamingEarnJoinGroup")
|
|
|
|
|
|
@interface InsightEventGamingEarnJoinGroup : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull groupName;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id groupName:(NSString * _Nonnull)groupName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK37InsightEventGamingEarnVirtualCurrency")
|
|
|
|
|
|
@interface InsightEventGamingEarnVirtualCurrency : Event
|
|
|
|
|
|
/// Amount of virtual currency earned
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Virtual currency name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currencyName;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currencyName:(NSString * _Nonnull)currencyName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK26InsightEventGamingLevelEnd")
|
|
|
|
|
|
@interface InsightEventGamingLevelEnd : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull levelName;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull success;
|
|
|
|
|
|
- (nonnull instancetype)initWithLevelName:(NSString * _Nonnull)levelName success:(NSString * _Nonnull)success parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK28InsightEventGamingLevelStart")
|
|
|
|
|
|
@interface InsightEventGamingLevelStart : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull levelName;
|
|
|
|
|
|
- (nonnull instancetype)initWithLevelName:(NSString * _Nonnull)levelName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK25InsightEventGamingLevelUp")
|
|
|
|
|
|
@interface InsightEventGamingLevelUp : Event
|
|
|
|
|
|
@property (nonatomic) int64_t level;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable character;
|
|
|
|
|
|
- (nonnull instancetype)initWithLevel:(int64_t)level character:(NSString * _Nullable)character parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventGamingPostScore")
|
|
|
|
|
|
@interface InsightEventGamingPostScore : Event
|
|
|
|
|
|
/// Posted score
|
|
|
|
|
|
@property (nonatomic) int64_t score;
|
|
|
|
|
|
/// Used character (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable character;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK38InsightEventGamingSpendVirtualCurrency")
|
|
|
|
|
|
@interface InsightEventGamingSpendVirtualCurrency : Event
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currencyName;
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nullable items;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currencyName:(NSString * _Nonnull)currencyName items:(NSArray<InsightItem *> * _Nullable)items parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK35InsightEventGamingUnlockAchievement")
|
|
|
|
|
|
@interface InsightEventGamingUnlockAchievement : Event
|
|
|
|
|
|
/// ID of the unlocked achievement
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull achievementName;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id achievementName:(NSString * _Nonnull)achievementName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK32InsightEventOtherPasswordChanged")
|
|
|
|
|
|
@interface InsightEventOtherPasswordChanged : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
- (nonnull instancetype)initWithSource:(NSString * _Nonnull)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK31InsightEventOtherProfileUpdated")
|
|
|
|
|
|
@interface InsightEventOtherProfileUpdated : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
- (nonnull instancetype)initWithSource:(NSString * _Nonnull)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventOtherScreenTime")
|
|
|
|
|
|
@interface InsightEventOtherScreenTime : Event
|
|
|
|
|
|
/// Class name of the current screen
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull screenClass;
|
|
|
|
|
|
/// Screen name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull screenName;
|
|
|
|
|
|
- (nonnull instancetype)initWithScreenClass:(NSString * _Nonnull)screenClass screenName:(NSString * _Nonnull)screenName duration:(int64_t)duration parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventOtherScreenView")
|
|
|
|
|
|
@interface InsightEventOtherScreenView : Event
|
|
|
|
|
|
/// Class name of the current screen
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull screenClass;
|
|
|
|
|
|
/// Screen name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull screenName;
|
|
|
|
|
|
- (nonnull instancetype)initWithScreenClass:(NSString * _Nonnull)screenClass screenName:(NSString * _Nonnull)screenName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventOtherSelectItem")
|
|
|
|
|
|
@interface InsightEventOtherSelectItem : Event
|
|
|
|
|
|
/// List of selected items
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
2026-10-31 23:39:07 +03:00
|
|
|
|
/// ID of the item list, sent as <code>id</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
/// Name of the item list, sent as <code>item_name</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull itemName;
|
|
|
|
|
|
- (nonnull instancetype)initWithItems:(NSArray<InsightItem *> * _Nonnull)items id:(NSString * _Nonnull)id itemName:(NSString * _Nonnull)itemName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
2026-10-30 15:07:27 +03:00
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK37InsightEventOtherStoreReviewCompleted")
|
|
|
|
|
|
@interface InsightEventOtherStoreReviewCompleted : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull storeName;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable source;
|
|
|
|
|
|
- (nonnull instancetype)initWithStoreName:(NSString * _Nonnull)storeName source:(NSString * _Nullable)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK37InsightEventOtherStoreReviewInitiated")
|
|
|
|
|
|
@interface InsightEventOtherStoreReviewInitiated : Event
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull storeName;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable source;
|
|
|
|
|
|
- (nonnull instancetype)initWithStoreName:(NSString * _Nonnull)storeName source:(NSString * _Nullable)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK30InsightEventOtherVoteCompleted")
|
|
|
|
|
|
@interface InsightEventOtherVoteCompleted : Event
|
2026-10-31 23:39:07 +03:00
|
|
|
|
/// Name of the store, sent as <code>store_name</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull storeName;
|
|
|
|
|
|
/// Where the user completed the vote, sent as <code>source</code> when given
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable source;
|
2026-10-30 15:07:27 +03:00
|
|
|
|
- (nonnull instancetype)initWithStoreName:(NSString * _Nonnull)storeName source:(NSString * _Nullable)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK30InsightEventOtherVoteInitiated")
|
|
|
|
|
|
@interface InsightEventOtherVoteInitiated : Event
|
2026-10-31 23:39:07 +03:00
|
|
|
|
/// Name of the store, sent as <code>store_name</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull storeName;
|
|
|
|
|
|
/// Where the user started the vote, sent as <code>source</code> when given
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable source;
|
2026-10-30 15:07:27 +03:00
|
|
|
|
- (nonnull instancetype)initWithStoreName:(NSString * _Nonnull)storeName source:(NSString * _Nullable)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK38InsightEventRevenueAdImpressionRevenue")
|
|
|
|
|
|
@interface InsightEventRevenueAdImpressionRevenue : Event
|
|
|
|
|
|
/// Ad value, sent as <code>payment_amount</code>
|
|
|
|
|
|
@property (nonatomic) double amount;
|
|
|
|
|
|
/// Currency of the ad value, sent as <code>payment_currency</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Platform serving the ad (e.g., MoPub, IronSource)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull platform;
|
|
|
|
|
|
/// Ad format (e.g., Banner, Interstitial)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable format;
|
|
|
|
|
|
/// Advertising network that served the ad, sent as <code>ad_network</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
/// Name of the ad unit
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable unitId;
|
|
|
|
|
|
- (nonnull instancetype)initWithAmount:(double)amount currency:(NSString * _Nonnull)currency platform:(NSString * _Nonnull)platform format:(NSString * _Nullable)format source:(NSString * _Nonnull)source unitId:(NSString * _Nullable)unitId parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK32InsightEventRevenueInAppPurchase")
|
|
|
|
|
|
@interface InsightEventRevenueInAppPurchase : Event
|
|
|
|
|
|
/// Bought product amount, sent as <code>quantity</code>
|
|
|
|
|
|
@property (nonatomic) double quantity;
|
|
|
|
|
|
/// Cost amount, sent as <code>payment_amount</code>
|
|
|
|
|
|
@property (nonatomic) double cost;
|
|
|
|
|
|
/// Currency in ISO 4217 format, sent as <code>payment_currency</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
/// Name of the product (e.g., Starter Pack)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull productName;
|
|
|
|
|
|
/// Store product identifier, sent as <code>product_id</code>
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull productId;
|
|
|
|
|
|
/// Receipt information from the store as Base64 encoding
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable receiptInfo;
|
|
|
|
|
|
- (nonnull instancetype)initWithQuantity:(double)quantity cost:(double)cost currency:(NSString * _Nonnull)currency productName:(NSString * _Nonnull)productName productId:(NSString * _Nonnull)productId receiptInfo:(NSString * _Nullable)receiptInfo parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
/// One unit.
|
|
|
|
|
|
- (nonnull instancetype)initWithCost:(double)cost currency:(NSString * _Nonnull)currency productName:(NSString * _Nonnull)productName productId:(NSString * _Nonnull)productId receiptInfo:(NSString * _Nullable)receiptInfo parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK27InsightEventRevenuePurchase")
|
|
|
|
|
|
@interface InsightEventRevenuePurchase : Event
|
|
|
|
|
|
/// Currency in ISO 4217 format
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull currency;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull paymentMethod;
|
|
|
|
|
|
/// Store affiliation (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable affiliation;
|
|
|
|
|
|
/// Coupon applied (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable coupon;
|
|
|
|
|
|
/// Unique transaction ID (optional)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable transactionId;
|
|
|
|
|
|
/// List of purchased items
|
|
|
|
|
|
@property (nonatomic, copy) NSArray<InsightItem *> * _Nonnull items;
|
|
|
|
|
|
- (nonnull instancetype)initWithCurrency:(NSString * _Nonnull)currency paymentMethod:(NSString * _Nonnull)paymentMethod affiliation:(NSString * _Nullable)affiliation coupon:(NSString * _Nullable)coupon transactionId:(NSString * _Nullable)transactionId items:(NSArray<InsightItem *> * _Nonnull)items parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK42InsightEventSearchPromotionSelectPromotion")
|
|
|
|
|
|
@interface InsightEventSearchPromotionSelectPromotion : Event
|
|
|
|
|
|
/// Promotion ID
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
/// Promotion name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull promotionName;
|
|
|
|
|
|
/// Name of the creative
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable creativeName;
|
|
|
|
|
|
/// Slot of the creative
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable creativeSlot;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id promotionName:(NSString * _Nonnull)promotionName creativeName:(NSString * _Nullable)creativeName creativeSlot:(NSString * _Nullable)creativeSlot parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK40InsightEventSearchPromotionViewPromotion")
|
|
|
|
|
|
@interface InsightEventSearchPromotionViewPromotion : Event
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id promotionName:(NSString * _Nonnull)promotionName creativeName:(NSString * _Nullable)creativeName creativeSlot:(NSString * _Nullable)creativeSlot parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK37InsightEventSearchPromotionViewSearch")
|
|
|
|
|
|
@interface InsightEventSearchPromotionViewSearch : Event
|
|
|
|
|
|
/// Search term used
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull term;
|
|
|
|
|
|
- (nonnull instancetype)initWithTerm:(NSString * _Nonnull)term parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK44InsightEventSearchPromotionViewSearchResults")
|
|
|
|
|
|
@interface InsightEventSearchPromotionViewSearchResults : Event
|
|
|
|
|
|
/// Search term used
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull term;
|
|
|
|
|
|
- (nonnull instancetype)initWithTerm:(NSString * _Nonnull)term parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK31InsightEventUserEngagementLogin")
|
|
|
|
|
|
@interface InsightEventUserEngagementLogin : Event
|
|
|
|
|
|
- (nonnull instancetype)initWithSource:(NSString * _Nonnull)source parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK39InsightEventUserEngagementSelectContent")
|
|
|
|
|
|
@interface InsightEventUserEngagementSelectContent : Event
|
|
|
|
|
|
/// Selected item id
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
/// Selected content type
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable type;
|
|
|
|
|
|
/// Selected content name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable contentName;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id type:(NSString * _Nullable)type contentName:(NSString * _Nullable)contentName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK38InsightEventUserEngagementShareContent")
|
|
|
|
|
|
@interface InsightEventUserEngagementShareContent : Event
|
|
|
|
|
|
/// item id
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull id;
|
|
|
|
|
|
/// content type
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable type;
|
|
|
|
|
|
/// content name
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable contentName;
|
|
|
|
|
|
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id type:(NSString * _Nullable)type contentName:(NSString * _Nullable)contentName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK32InsightEventUserEngagementSignUp")
|
|
|
|
|
|
@interface InsightEventUserEngagementSignUp : Event
|
|
|
|
|
|
/// Sign-up method (e.g., iphone, android)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull source;
|
|
|
|
|
|
/// Sign-up method (e.g., email, Facebook)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull method;
|
|
|
|
|
|
- (nonnull instancetype)initWithSource:(NSString * _Nonnull)source method:(NSString * _Nonnull)method parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK39InsightEventUserEngagementTutorialBegin")
|
|
|
|
|
|
@interface InsightEventUserEngagementTutorialBegin : Event
|
|
|
|
|
|
/// Name of the tutorial (e.g., Homepage, Purchase, Booster)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull tutorialName;
|
|
|
|
|
|
- (nonnull instancetype)initWithTutorialName:(NSString * _Nonnull)tutorialName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK42InsightEventUserEngagementTutorialComplete")
|
|
|
|
|
|
@interface InsightEventUserEngagementTutorialComplete : Event
|
|
|
|
|
|
/// Name of the tutorial (e.g., Homepage, Purchase, Booster)
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull tutorialName;
|
|
|
|
|
|
- (nonnull instancetype)initWithTutorialName:(NSString * _Nonnull)tutorialName parameters:(NSDictionary<NSString *, Value *> * _Nonnull)parameters OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@class ParameterListValue;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK11InsightItem")
|
|
|
|
|
|
@interface InsightItem : NSObject
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull productId;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nonnull productName;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable affiliation;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable coupon;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable brand;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category2;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category3;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category4;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable category5;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable list;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable variant;
|
|
|
|
|
|
@property (nonatomic) double price;
|
|
|
|
|
|
@property (nonatomic) double quantity;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable merchant;
|
|
|
|
|
|
- (nonnull instancetype)initFrom:(ParameterListValue * _Nonnull)parameterListValue;
|
|
|
|
|
|
- (NSArray<EventParameter *> * _Nonnull)toEventParameters SWIFT_WARN_UNUSED_RESULT;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK9ListValue")
|
|
|
|
|
|
@interface ListValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(NSArray<Value *> * _Nonnull)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
typedef SWIFT_ENUM(NSInteger, LogLevel, open) {
|
|
|
|
|
|
LogLevelTrace = 0,
|
|
|
|
|
|
LogLevelDebug = 1,
|
|
|
|
|
|
LogLevelInfo = 2,
|
|
|
|
|
|
LogLevelWarning = 3,
|
|
|
|
|
|
LogLevelError = 4,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK9LongValue")
|
|
|
|
|
|
@interface LongValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(int64_t)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK18ParameterListValue")
|
|
|
|
|
|
@interface ParameterListValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(NSArray<EventParameter *> * _Nonnull)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_PROTOCOL("_TtP10InsightSDK15ScreenTrackable_")
|
|
|
|
|
|
@protocol ScreenTrackable
|
|
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Nonnull screenName;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@class NSURL;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK16SdkConfiguration")
|
|
|
|
|
|
@interface SdkConfiguration : NSObject
|
|
|
|
|
|
- (nonnull instancetype)initWithApiKey:(NSString * _Nonnull)apiKey apiBaseUrl:(NSString * _Nullable)apiBaseUrl apiSslCertificatePemUrl:(NSURL * _Nullable)apiSslCertificatePemUrl pushToken:(NSString * _Nullable)pushToken logLevel:(enum LogLevel)logLevel OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
typedef SWIFT_ENUM(NSInteger, SdkStartState, open) {
|
|
|
|
|
|
SdkStartStateFailure = 0,
|
|
|
|
|
|
SdkStartStateSuccess = 1,
|
|
|
|
|
|
SdkStartStateSkipped = 2,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK11StringValue")
|
|
|
|
|
|
@interface StringValue : Value
|
|
|
|
|
|
- (nonnull instancetype)initWithValue:(NSString * _Nonnull)value OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface UIView (SWIFT_EXTENSION(InsightSDK))
|
|
|
|
|
|
/// Force-masks this view and its subtree in screen recording.
|
|
|
|
|
|
@property (nonatomic) BOOL screenRecordingMask;
|
|
|
|
|
|
/// Unmasks plain text and images in this subtree; never the always-masked list, so a secure input stays masked.
|
|
|
|
|
|
@property (nonatomic) BOOL screenRecordingUnmask;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@class NSNumber;
|
|
|
|
|
|
SWIFT_CLASS("_TtC10InsightSDK4User")
|
|
|
|
|
|
@interface User : NSObject
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable userId;
|
|
|
|
|
|
@property (nonatomic, strong) NSNumber * _Nullable gender;
|
|
|
|
|
|
@property (nonatomic, strong) NSNumber * _Nullable yearOfBirth;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable displayName;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable email;
|
|
|
|
|
|
@property (nonatomic, copy) NSString * _Nullable phoneNumber;
|
|
|
|
|
|
@property (nonatomic) BOOL isPIIHashed;
|
|
|
|
|
|
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable other;
|
|
|
|
|
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
|
|
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
|
|
|
- (nonnull instancetype)initWithUserId:(NSString * _Nullable)userId gender:(NSNumber * _Nullable)gender yearOfBirth:(NSNumber * _Nullable)yearOfBirth displayName:(NSString * _Nullable)displayName email:(NSString * _Nullable)email phoneNumber:(NSString * _Nullable)phoneNumber isPIIHashed:(BOOL)isPIIHashed other:(NSDictionary<NSString *, NSString *> * _Nullable)other OBJC_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
typedef SWIFT_ENUM(NSInteger, UserGender, open) {
|
|
|
|
|
|
UserGenderFemale = 0,
|
|
|
|
|
|
UserGenderMale = 1,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // defined(__OBJC__)
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
|
|
|
# pragma clang attribute pop
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
#error unsupported Swift architecture
|
|
|
|
|
|
#endif
|