@@ -284,6 +284,24 @@ public struct SpanEvent: Encodable
284
284
public let applicationVersion: String
285
285
public let networkConnectionInfo: NetworkConnectionInfo?
286
286
public let mobileCarrierInfo: CarrierInfo?
287
+ public struct DeviceInfo: Codable
288
+ public enum DeviceType: String, Codable
289
+ case mobile = "mobile"
290
+ case tablet = "tablet"
291
+ case tv = "tv"
292
+ case other = "other"
293
+ public let brand: String
294
+ public let name: String
295
+ public let model: String
296
+ public let architecture: String
297
+ public let type: DeviceType
298
+ public let deviceInfo: DeviceInfo
299
+ public struct OperatingSystemInfo: Codable
300
+ public let name: String
301
+ public let version: String
302
+ public let build: String?
303
+ public let versionMajor: String
304
+ public let osInfo: OperatingSystemInfo
287
305
public struct UserInfo
288
306
public let id: String?
289
307
public let name: String?
@@ -2094,11 +2112,11 @@ public typealias WireframeID = NodeID
2094
2112
public class SessionReplayWireframesBuilder
2095
2113
public struct FontOverride
2096
2114
public init(size: CGFloat?)
2097
- public func createShapeWireframe(id: WireframeID,frame: CGRect,clip: SRContentClip? = nil ,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2098
- public func createImageWireframe(id: WireframeID,resource: SessionReplayResource,frame: CGRect,mimeType: String = "png",clip: SRContentClip? = nil ,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2099
- public func createTextWireframe(id: WireframeID,frame: CGRect,text: String,textFrame: CGRect? = nil,textAlignment: SRTextPosition.Alignment? = nil,clip: SRContentClip ? = nil,textColor: CGColor? = nil,font: UIFont? = nil,fontOverride: FontOverride? = nil,fontScalingEnabled: Bool = false,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2100
- public func createPlaceholderWireframe(id: Int64,frame: CGRect,label: String,clip: SRContentClip? = nil ) -> SRWireframe
2101
- public func visibleWebViewWireframe(id: Int,frame: CGRect,clip: SRContentClip? = nil ,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2115
+ public func createShapeWireframe(id: WireframeID,frame: CGRect,clip: CGRect ,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2116
+ public func createImageWireframe(id: WireframeID,resource: SessionReplayResource,frame: CGRect,clip: CGRect, mimeType: String = "png",borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2117
+ public func createTextWireframe(id: WireframeID,frame: CGRect,clip: CGRect, text: String,textFrame: CGRect? = nil,textAlignment: SRTextPosition.Alignment? = nil,textColor: CGColor? = nil,font: UIFont? = nil,fontOverride: FontOverride? = nil,fontScalingEnabled: Bool = false,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2118
+ public func createPlaceholderWireframe(id: Int64,frame: CGRect,clip: CGRect,label: String ) -> SRWireframe
2119
+ public func visibleWebViewWireframe(id: Int,frame: CGRect,clip: CGRect ,borderColor: CGColor? = nil,borderWidth: CGFloat? = nil,backgroundColor: CGColor? = nil,cornerRadius: CGFloat? = nil,opacity: CGFloat? = nil) -> SRWireframe
2102
2120
public func hiddenWebViewWireframes() -> [SRWireframe]
2103
2121
[?] extension SRContentClip
2104
2122
public static func create(bottom: Int64?,left: Int64?,right: Int64?,top: Int64?) -> SRContentClip
@@ -2138,12 +2156,13 @@ public protocol SessionReplayResource
2138
2156
func calculateIdentifier() -> String
2139
2157
func calculateData() -> Data
2140
2158
public struct SessionReplayViewAttributes: Equatable
2141
- public let frame: CGRect
2142
- public let backgroundColor: CGColor?
2143
- public let layerBorderColor: CGColor?
2144
- public let layerBorderWidth: CGFloat
2145
- public let layerCornerRadius: CGFloat
2146
- public let alpha: CGFloat
2159
+ public internal(set) var frame: CGRect
2160
+ public internal(set) var clip: CGRect
2161
+ public internal(set) var backgroundColor: CGColor?
2162
+ public internal(set) var layerBorderColor: CGColor?
2163
+ public internal(set) var layerBorderWidth: CGFloat
2164
+ public internal(set) var layerCornerRadius: CGFloat
2165
+ public internal(set) var alpha: CGFloat
2147
2166
public protocol SessionReplayNodeSemantics
2148
2167
static var importance: Int
2149
2168
var subtreeStrategy: SessionReplayNodeSubtreeStrategy
0 commit comments