Classes
The following classes are available globally.
-
Main SDK class to get/create various objects and handlers
Use
TraceVision.sharedto access the singleton to interact with SDK.See moreNote
The SDK should be initialized withinitSDK()method before using any other methods. You will need to provide the API token and secret that you should acquire from TraceVision.Declaration
Swift
public class TraceVision : ObservableObject -
Obsevable information about the authorization
See moreDeclaration
Swift
public final class AuthInfo : ObservableObject -
A Queue with a limited capacity backed by the array
When the queue is full, the oldest element is removed from the queue if append is called
See moreNote
the queue is not thread safeDeclaration
Swift
public class LimitedQueue<T> : Sequence -
Video player that can play a list of highlights
Each
See moreHighlightObjectshould havechunkNamepointing to the video fileDeclaration
Swift
public final class HighlightVideoPlayer : ObservableObject -
A UIView subclass that displays the video content of an AVPlayer object associated with a
HighlightVideoPlayer.This view contains AVPlayerLayer that is connected to the video player. To initialize the view, you need to provide a
HighlightVideoPlayerobject or you can set it later with theplayerproperty.See moreNote
usesAVSynchronizedLayerto sync video and animation that is used to follow the playerDeclaration
Swift
public class VideoRenderView : UIView -
Observable Video status class that provides updates to the processing of the video.
Provides published observable processing status, number of highlights found and the list of the highlights.
See moreNote
We havehighlightsFoundandhighlightsas separate properties. Due to the nature of how TraceDetector works these properties can be updated separately and be out of sync during the processing. As soon as the highlight detected thehighlightsFoundproperty is updated but the highlight is not available viahighlightsyet. TraceDetector will continue to track the highlight and then finalize it a little later. Once the highlight is finalized it will be available in thehighlightslist.Declaration
Swift
public class VideoStatus : ObservableObject -
Observable VideoImport status class that provides updates to the processing of the imported video.
Provides progress, estimated time remaining of the processing and a preview frame. This class inherits from
See moreVideoStatusand provides the same observable properties for the processing status, number of highlights found and the list of highlights.Declaration
Swift
public class VideoImportStatus : VideoStatus -
Observable class provides status updates for the video recorder
Properties of this class are updated by the
VideoRecorderProtocolmethods. Provides the following published observable properties:isInitialized- is the recorder initializedisRecording- is the recorder currently recordingduration- duration of the current recordingorientation- current orientation of the video recorderzoom- current zoom level of the video recorder
See moreNote
You can get the current object from theVideoRecorderProtocol.statuspropDeclaration
Swift
public class VideoRecorderStatus : VideoStatus -
Video information
Contains the information about the video file, it’s location, duration, video dimensions, etc
See moreDeclaration
Swift
public class VideoInfo
Classes Reference