Free Use Bible API
Guide
Reference
SDKs
Seed Bible
GitHub
Support
  • English
  • Afrikaans
  • አማርኛ
  • العربية
  • বাংলা
  • Deutsch
  • Español
  • Français
  • Hausa
  • हिन्दी
  • Bahasa Indonesia
  • Italiano
  • 日本語
  • Português
  • Русский
  • Kiswahili
  • اردو
  • 简体中文
  • isiZulu
Guide
Reference
SDKs
Seed Bible
GitHub
Support
  • English
  • Afrikaans
  • አማርኛ
  • العربية
  • বাংলা
  • Deutsch
  • Español
  • Français
  • Hausa
  • हिन्दी
  • Bahasa Indonesia
  • Italiano
  • 日本語
  • Português
  • Русский
  • Kiswahili
  • اردو
  • 简体中文
  • isiZulu
  • Seed Bible
  • Guides
    • Developer Guide
    • Extension API
    • Security Model
  • API Reference (v1.18.0)
    • seed-bible/extensions
      • Classes

        • SandboxError
      • Interfaces

        • SandboxBook
        • SandboxChapter
        • SandboxChapterRef
        • SandboxChatMessage
        • SandboxChatRequest
        • SandboxCommentary
        • SandboxCommentaryBook
        • SandboxCommentaryChapter
        • SandboxCommentaryProfile
        • SandboxContext
        • SandboxDataset
        • SandboxDatasetBook
        • SandboxDatasetChapter
        • SandboxDatasetReference
        • SandboxDiscoverRequest
        • SandboxExtensionDefinition
        • SandboxFootnote
        • SandboxFriend
        • SandboxHighlight
        • SandboxNote
        • SandboxPaneHandle
        • SandboxPaneOptions
        • SandboxPlayback
        • SandboxPortalHandle
        • SandboxPortalOptions
        • SandboxProfile
        • SandboxReadingEvent
        • SandboxReadingPosition
        • SandboxReference
        • SandboxSave
        • SandboxSearchQuery
        • SandboxSearchResult
        • SandboxSearchResults
        • SandboxSelectedVerse
        • SandboxSessionParticipant
        • SandboxSharedSession
        • SandboxToolHandle
        • SandboxToolItemOptions
        • SandboxToolOptions
        • SandboxToolSelectContext
        • SandboxTranslation
        • SandboxVerseRef
        • SandboxViewProps
      • Type Aliases

        • SandboxCasualOSPattern
        • SandboxChapterContent
        • SandboxDiscoverResult
        • SandboxExtension
        • SandboxIcon
        • SandboxJsonValue
        • SandboxPermission
        • SandboxTitle
      • Variables

        • SANDBOX_PERMISSION_INFO
        • SANDBOX_PERMISSIONS
      • Functions

        • createSandboxClient
        • defineExtension
      • Unexported types
        • Interfaces

          • ChapterRef
          • SandboxInit
          • SandboxPermissionInfo
          • SandboxState
        • Type Aliases

          • SandboxErrorCode
          • SandboxFrameMode
          • SandboxPanePlacement
          • ToolFlag
    • seed-bible/extensions/testing
      • Interfaces

        • TestCall
        • TestHost
        • TestHostOptions
        • TestPane
      • Type Aliases

        • TestAnswer
      • Functions

        • createTestHost
      • Unexported types
        • Interfaces

          • SandboxCapture
          • SandboxMethods
          • SandboxToolDefinition
          • SandboxToolItem
        • Type Aliases

          • SandboxMethod
          • SandboxToolPatch
          • SandboxToolSurface
    • seed-bible/components
      • Interfaces

        • BottomSheetExpansion
        • BottomSheetProps
        • MaterialIconProps
        • PortalComponentHandle
        • PortalComponentProps
        • SearchBarProps
        • TranslationListProps
      • Type Aliases

        • ButtonProps
        • ButtonShape
        • ButtonSize
        • ButtonTone
        • ButtonVariant
        • CasualOSPattern
        • CloseButtonLook
        • CloseButtonSize
        • ContextMenuTriggerProps
        • ContextMenuWithButtonProps
        • IconButtonLook
        • IconButtonProps
        • IconButtonSize
        • SkeletonShape
      • Variables

        • AddIcon
        • AddTab
        • AiChatIcon
        • AiIcon
        • ApologistIcon
        • AskIcon
        • BibleIcon
        • BookmarkIcon
        • BookOutlineIcon
        • BurgerMenuIcon
        • CalendarStarIcon
        • ChatParticipantsIcon
        • ClientLogo
        • ColorSelect
        • CommunityIcon
        • CopyIcon
        • DiscordIcon
        • DonateIcon
        • DualScreenIcon
        • EditIcon
        • Eraser
        • ExtensionsIcon
        • FiltersIcon
        • FolderIcon
        • FormatLine
        • GoPrivateIcon
        • HighlightIcon
        • InfoSettingsIcon
        • JoinSession
        • LoadSpace
        • MarginIcon
        • MarginXIcon
        • MarginYIcon
        • MaterialIcon
        • MenuDown
        • MenuIcon
        • MinusIcon
        • MoreIcon
        • OpenFolderIcon
        • Panal
        • Panel1
        • Panel2
        • Panel3
        • Panel3Row
        • Panel4
        • Panel4Row
        • Playlist
        • PortalComponent
        • QuadScreenIcon
        • SbTabsIcon
        • SelectedIcon
        • SelectionUIIcon
        • SettingsIcon
        • ShareIcon
        • SingleScreenIcon
        • Space
        • SpaceDefaultIcon
        • SplitScreenIcon
        • StarIcon
        • StartSessionIcon
        • SupportIcon
        • T
        • TabsIcon
        • ThemeIcon
        • ThreeScreenIcon
        • TickIcon
        • TodayIcon
        • ToolbarIcon
        • UserAvatar
      • Functions

        • BottomSheet
        • Button
        • CloseButton
        • ContextMenuItem
        • ContextMenuWithButton
        • ExpandableText
        • IconButton
        • InstallAppsIcon
        • PlaylistLinkContent
        • SafariIcon
        • ScriptureLineHeightIcon
        • SearchBar
        • SeedBibleIcon
        • SeedBibleWordmark
        • Skeleton
        • SkeletonContainer
        • StopIcon
        • TranslationList
        • TranslationViewModeMenu
        • useDragReorder
      • Unexported types
        • Interfaces

          • Translation
          • TranslationLanguageGroup
          • UseDragReorderOptions
        • Type Aliases

          • CloseButtonProps
          • SvgIconProps
          • TranslationViewMode

Seed Bible extension API (v1.18.0) / seed-bible/extensions / SandboxExtensionDefinition

Interface: SandboxExtensionDefinition

What defineExtension takes.

Properties

main?

main?: (sb: SandboxContext) => void | Promise<void>;

Runs once in the extension's hidden background frame when it starts: register tools and providers here. If it throws, the extension fails to start. Don't wait on the user in it.

Parameters

ParameterType
sbSandboxContext

Returns

void | Promise<void>


views?

views?: Record<string, (props: SandboxViewProps) => ComponentChild>;

The UI for each pane, dialog or settings panel the extension shows, by name. Each renders in its own frame, with the app's theme and fonts applied, and is destroyed when it closes. Styles must come from the bundle (inline, or CSS imported with ?inline).

Prev
SandboxDiscoverRequest
Next
SandboxFootnote