Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 2.75 KB

titanium-copilot.md

File metadata and controls

31 lines (18 loc) · 2.75 KB

Titanium Copilot

Titanium Copilot is your expert pair programmer for the Titanium SDK, Alloy MVC, and JavaScript. Whether you need help building cross-platform native apps or have questions about creating models and collections in Alloy, fetching data from a remote API in Titanium, or making your window and UI work on notched and notch-less devices, Titanium Copilot has got you covered! With a friendly welcome message and a range of tools at its disposal, this app is your go-to companion for all your Titanium SDK and JavaScript needs.

Example prompts

  1. Prompt 1: "How do I create models and collections in Alloy?"

  2. Prompt 2: "How do I fetch data from a remote API in Titanium?"

  3. Prompt 3: "Show me an Alloy MVC model."

  4. Prompt 4: "Should I use a TableView or ListView?"

  5. Prompt 5: "How can I ensure my window and UI works on notched and notchless devices?"

Features and commands

Feature/Command Description
createModel This command allows you to create models in Alloy, which is an MVC framework for Titanium SDK. It helps in defining the schema and mapping the data from the backend to the app.
createCollection This command allows you to create collections in Alloy, which are used to store and manage multiple instances of a model. Collections provide methods for querying and manipulating data.
fetchData This command provides instructions on how to fetch data from a remote API using Titanium SDK. It covers the steps to make HTTP requests, handle responses, and process the data in your app.
showModel This command showcases an example Alloy MVC model. It helps you understand the structure and properties of a model in Alloy and how it can be utilized in your app.
chooseTableView This command provides guidance on when to use a TableView or a ListView in your Titanium app. It explains the differences, advantages, and use cases for each component to help you make an informed decision.
ensureUICompatibility This command provides tips and best practices to ensure that your window and user interface (UI) designs work seamlessly on devices with notched or notchless screens. It covers considerations for layout, spacing, safe areas, and device-specific adjustments.