Package com. snap. camerakit
Types
AudioProcessor
Link copied to clipboard
Defines a Processor that is able to take AudioProcessor.Input and run audio processing operations that analyze data to detect patterns and/or mutate the provided AudioProcessor.Input.Frames to apply effects such as filtering, pitch correction etc.
Experimental
Link copied to clipboard
annotation class Experimental
Content copied to clipboard
ImageProcessor
Link copied to clipboard
Defines a Processor that is able to take ImageProcessor.Input, run some image processing operations on it and render the final result to ImageProcessor.Output.
LegalProcessor
Link copied to clipboard
Defines a Processor that subscribes to LegalProcessor.Input to receive results from a user responding to a LegalProcessor.Input.Prompt for a legal agreement.
LocationProcessor
Link copied to clipboard
Defines a Processor that subscribes to LocationProcessor.Input to receive information about the current device Location, when available.
MediaProcessor
Link copied to clipboard
SafeRenderAreaProcessor
Link copied to clipboard
Defines a Processor that subscribes to SafeRenderAreaProcessor.Input to receive updates on the area that the client considers to be safe for rendering content such as lens UI elements where they can not overlap or interfere with the client's own UI.
UnauthorizedApplicationException
Link copied to clipboard
class UnauthorizedApplicationException(applicationId: String, packageName: String?) : RuntimeException
Content copied to clipboard
If application with a specific ID and package name is not authorized to use CameraKit this exception will be thrown, normally ending up in the error handler provided via Session.Builder.handleErrorsWith.
UserProcessor
Link copied to clipboard
Defines a Processor that subscribes to UserProcessor.Input to receive information about the current user, when available.
Version
Link copied to clipboard
class Version @JvmOverloads() constructor(major: Int, minor: Int, patch: Int, qualifier: String?) : Comparable<Version>
Content copied to clipboard
Functions
arCoreInput
Link copied to clipboard
fun arCoreInput(context: Context, mp4DataSetFile: File): ImageProcessor.Input.Pausable?
Content copied to clipboard
Creates a ImageProcessor.Input.Pausable instance that uses ARCore development kit to provide surface tracking capabilities.
fun arCoreInput(context: Context, facingFront: Boolean): ImageProcessor.Input.Pausable?
Content copied to clipboard
Creates a ImageProcessor.Input.Pausable instance that uses ARCore development kit to provide surface tracking capabilities.
connectInput
Link copied to clipboard
@CheckResult()
@JvmOverloads()
Content copied to clipboard
Connects the provided file and associated optional parameters as a video based ImageProcessor.Input.
connectOutput
Link copied to clipboard
@CheckResult()
@JvmOverloads()
Content copied to clipboard
@CheckResult()
@JvmOverloads()
Content copied to clipboard
inputFrameFrom
Link copied to clipboard
fun inputFrameFrom(buffer: ByteArray, samplesCount: Int): AudioProcessor.Input.Frame
Content copied to clipboard
Creates or uses a recycled AudioProcessor.Input.Frame that gets populated with the provided parameters.
inputFrom
Link copied to clipboard
fun inputFrom(surfaceTexture: SurfaceTexture, width: Int, height: Int, rotationDegrees: Int, facingFront: Boolean, horizontalFieldOfView: Float, verticalFieldOfView: Float): ImageProcessor.Input
Content copied to clipboard
mediaStoreSourceFor
Link copied to clipboard
fun mediaStoreSourceFor(context: Context, executorService: ExecutorService): Source<MediaProcessor>
Content copied to clipboard
Creates a new Source that attempts to use android.provider.MediaStore to read media data and provide it to an attached MediaProcessor.
microphoneSourceFor
Link copied to clipboard
fun microphoneSourceFor(executorService: ExecutorService): Source<AudioProcessor>
Content copied to clipboard
Creates a new Source that attempts to use device microphone to read audio data and provide it to an attached AudioProcessor.
newBuilder
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
outputFrom
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
@JvmOverloads()
Content copied to clipboard
processBitmap
Link copied to clipboard
@WorkerThread()
@JvmOverloads()
Content copied to clipboard
If connectedInput is currently connected to this processor, process the bitmap and output the result as Bitmap.
processImage
Link copied to clipboard
@WorkerThread()
@JvmOverloads()
Content copied to clipboard
If connectedInput is currently connected to this processor, process the image and output the result as Bitmap.
sourceFrom
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
@JvmOverloads()
Content copied to clipboard
@JvmOverloads()
Content copied to clipboard
toBitmap
Link copied to clipboard
@WorkerThread()
@JvmOverloads()
Content copied to clipboard
If ImageProcessor.Input is currently connected to this processor, process the input and outputs the result as Bitmap for the specified width and height dimensions and an optional rotationDegrees as well as purpose.
versionFrom
Link copied to clipboard