ShineDoc Technical Documentation

website·Indexed 31 days ago

https://shinedoc.kangxiaoguang.com

Internal interface and technical documentation for Shinevision (神州视翰). It provides JavaScript APIs for hardware integration including face recognition (window.FaceRecognition), card readers (window.CardReader), printers (window.Printer), and TTS (window.TTS), as well as SDKs for general hardware functions, A64 and px30 firmware configurations, and ADB usage guides.

Tokens
25.5K
Snippets
203
Records
228
Agent score
50%

What's inside ShineDoc

  1. Create and organize blog posts in Docusaurus

    Docusaurus blogging features are powered by the @docusaurus/plugin-content-blog plugin. To create blog posts, add Markdown files or folders to the blog directory.

    Blog post dates are automatically extracted from filenames using the format YYYY-MM-DD-title.md (e.g., 2019-05-30-welcome.md). Alternatively, you can use a folder structure like 2019-05-30-welcome/index.md, which is useful for co-locating images with the post content. The blog also supports tags and a dedicated authors.yml file for managing regular blog authors.

    # Example filename for date extraction
    2019-05-30-welcome.md
    
    # Example folder structure for co-locating assets
    2019-05-30-welcome/
    └── index.md
  2. Implement a close button for the browser component

    You can create a close button overlay using window.AreaWebView.createCloseView. When this button is clicked, the system triggers a global callback function named onWebViewCloseViewClick on the page.
    // 1. Create the close button view
    // window.AreaWebView.createCloseView(id, imgPath, x, y, width, height)
    window.AreaWebView.createCloseView('uuid-123', '/sdcard/close.png', 0, 0, 50, 50);
    
    // 2. Define the callback function to handle the click
    function onWebViewCloseViewClick(content) {
        console.log('Close button clicked with content:', content);
    }
  3. Create and organize blog posts in Docusaurus

    Docusaurus blogging features are powered by the @docusaurus/plugin-content-blog plugin. To create blog posts, add Markdown files or folders to the blog directory. To co-locate images with a specific post, use a folder for that post. Blog post dates are automatically extracted from filenames using the format YYYY-MM-DD-title.md or by placing an index.md inside a folder named YYYY-MM-DD-title.
    # Example filename for date extraction
    2019-05-30-welcome.md
    
    # Example folder structure for co-locating images
    blog/2019-05-30-welcome/index.md
    blog/2019-05-30-welcome/image.jpg
  4. Create and organize blog posts in Docusaurus

    Docusaurus blogging features are powered by the @docusaurus/plugin-content-blog plugin. To create blog posts, add Markdown files or folders to the blog directory. Dates are automatically extracted from filenames using the format YYYY-MM-DD-title.md (e.g., 2019-05-30-welcome.md). For posts with multiple assets, use a folder structure like YYYY-MM-DD-title/index.md to co-locate images with the content.
  5. Install and initialize the General SDK

    The General SDK provides hardware-based utilities including scheduled power-on, shutdown, reboot, volume control, and screen backlight management. Note that some interfaces require system signatures to be called. All API methods are located in the SystemCommonUtils class.
    // Add private repository address first, then add dependency
    dependencies {
        implementation 'cn.com.shine.sdk:common:3.7.9'
    }
    // Initialize the SDK, preferably in Application.onCreate()
    SystemCommonUtils.init(Application app);