The Koji platform provides controls that you can use to capture user input, such as images, text, and sounds.In addition, you can create your own custom controls.
Examples of custom controls are tile map editors, sound enhancers, or custom avatar creators, which enhance the app’s interactivity.
A custom control is an application in Koji; therefore, you create one the same way you create any other Koji application.However, it cannot be used as a standalone app.When triggered, it appears over the parent app like a modal.
This topic outlines the steps to create your own custom control.
Provide a link to your custom control
Any app that uses your custom control must call Koji.ui.capture.custom
with a koji-vccs.com
subdomain.
To get your own subdomain of koji-vccs.com
,
Open the published custom control.
You can open the link that is provided in the notification immediately after you publish.
You can also go back to the Project Details page and click View Published Koji.
While viewing your custom control, go to App› …› Custom Domain.
Click Add New Domain.
Select Subdomain and click Next.
Select
koji-vccs.com
as the root domain, enter a subdomain, and click Register.The subdomain name you enter will be passed as the
name
parameter toKoji.ui.capture.custom
.