Package-level declarations
Types
Link copied to clipboard
open class PrismSession(val context: Context, val lifecycleOwner: LifecycleOwner, val captureSession: CaptureSessionInterface, val configuration: PrismSessionConfiguration = PrismSessionConfiguration(), val audioPlayer: AudioPlayerInterface = AudioPlayer(context), val speechSynthesizer: SpeechSynthesizerInterface = SpeechSynthesizer(context), dispatcher: CoroutineDispatcher = Dispatchers.Main)
A PrismSession is a container for all the state and configuration for a single session. It is responsible for managing the state of the session and the audio player, and all of the future state managers.
Link copied to clipboard
class PrismSessionConfiguration(val theme: PrismThemeConfiguration = PrismThemeConfiguration(), val poseTheme: PoseTheme = PoseTheme())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PrismThemeConfiguration(val primaryColor: Color = PrismColors.primaryColor, val secondaryColor: Color = PrismColors.secondaryColor, val tertiaryColor: Color = PrismColors.tertiaryColor, val disabledColor: Color = PrismColors.prismBase5, val shadowColor: Color = PrismColors.prismBase10, val borderColor: Color = PrismColors.prismBase20, val successColor: Color = PrismColors.prismSuccess, val errorColor: Color = PrismColors.prismError, val primaryIconColor: Color = PrismColors.prismBlack, val secondaryIconColor: Color = PrismColors.prismBlack, val tertiaryIconColor: Color = PrismColors.prismBlack, val iconBackgroundColor: Color = PrismColors.primaryColor, val overlayColor: Color = PrismColors.prismBase50, val backgroundColor: Color = PrismColors.prismWhite, val secondaryBackgroundColor: Color = PrismColors.prismBase2, val titleTextColor: Color = PrismColors.prismBlack, val textColor: Color = PrismColors.prismBlack, val disabledTextColor: Color = PrismColors.prismBase20, val buttonTextColor: Color = PrismColors.prismBlack, val primaryButtonCornerRadius: Float = 12.0f, val smallButtonCornerRadius: Float = 12.0f, val cardCornerRadius: Float = 12.0f, val sheetCornerRadius: Float = 12.0f, val gradientColors: List<Color> = listOf(
PrismColors.prismPurple,
PrismColors.prismBlue,
PrismColors.prismGreen,
PrismColors.prismYellow,
PrismColors.prismOrange,
PrismColors.prismRed,
PrismColors.prismPurple
), val largeTitleFont: TextStyle = PrismTextStyles.largeTitle.copy(color = titleTextColor), val titleFont: TextStyle = PrismTextStyles.title.copy(color = titleTextColor), val secondaryTitleFont: TextStyle = PrismTextStyles.title2.copy(color = titleTextColor), val tertiaryTitleFont: TextStyle = PrismTextStyles.title3.copy(color = titleTextColor), val bodyFont: TextStyle = PrismTextStyles.body.copy(color = textColor))
Defines all of the available properties for theming the PrismSession
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
PrismSessionView is the main entry point for the Prism SDK. It is responsible for managing the different states of the capture session. It is also responsible for managing the different views that are shown to the user.
Link copied to clipboard