Companion

Properties

Link copied to clipboard
const val FIRST_ID: Int

Request ids of extensions start here, far from the ids the apps' own requests use.

Functions

Link copied to clipboard
fun agree(ours: List<Int>, theirs: Set<Int>?): Int?

The highest major both sides speak, or null.

Link copied to clipboard
Link copied to clipboard

"/" → (id, major), or null for anything else (core capabilities included: none defined yet).

Link copied to clipboard
fun parseCaps(a: JSONArray?): Map<String, Set<Int>>

The caps array of a sync or status: extension id → majors (malformed entries ignored, at most Ext.MAX_CAPS).

Link copied to clipboard
Link copied to clipboard