Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69454c29 authored by Dan Albert's avatar Dan Albert
Browse files

Improve the docs about when to use introduced.

Bug: None
Test: None
Change-Id: I90eeb24c0fce8f17576f6e4c98e04aa2855a4e8c
parent 78567011
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -88,12 +88,17 @@ but is useful when developing APIs for an unknown future release.

### introduced

Indicates the version in which an API was first introduced. For example,
`introduced=21` specifies that the API was first added (or first made public) in
API level 21. This tag can be applied to either a version definition or an
individual symbol. If applied to a version, all symbols contained in the version
will have the tag applied. An `introduced` tag on a symbol overrides the value
set for the version, if both are defined.
Indicates the version in which an API was first introduced in the NDK. For
example, `introduced=21` specifies that the API was first added (or first made
public) in API level 21. This tag can be applied to either a version definition
or an individual symbol. If applied to a version, all symbols contained in the
version will have the tag applied. An `introduced` tag on a symbol overrides the
value set for the version, if both are defined.

The `introduced` tag should only be used with NDK APIs. Other API surface tags
(such as `apex`) will override `introduced`. APIs that are in the NDK should
never use tags like `apex`, and APIs that are not in the NDK should never use
`introduced`.

Note: The map file alone does not contain all the information needed to
determine which API level an API was added in. The `first_version` property of