Columns
class Columns : BaseColumns
kotlin.Any | |
↳ | androidx.core.provider.FontsContractCompat.Columns |
Defines the constants used in a response from a Font Provider. The cursor returned from the query should have the ID column populated with the content uri ID for the resulting font. This should point to a real file or shared memory, as the client will mmap the given file descriptor. Pipes, sockets and other non-mmap-able file descriptors will fail to load in the client application.
Summary
Constants | |
---|---|
static String |
Constant used to request data from a font provider. |
static String |
Constant used to request data from a font provider. |
static String |
Constant used to request data from a font provider. |
static Int |
Constant used to represent a result was not found. |
static Int |
Constant used to represent a result was found, but cannot be provided at this moment. |
static Int |
Constant used to represent that the query was not in a supported format by the provider. |
static Int |
Constant used to represent a result was retrieved successfully. |
static String |
Constant used to request data from a font provider. |
static String |
Constant used to request data from a font provider. |
static String |
Constant used to request data from a font provider. |
Public constructors | |
---|---|
<init>() Defines the constants used in a response from a Font Provider. |
Constants
FILE_ID
static val FILE_ID: String
Constant used to request data from a font provider. The cursor returned from the query may populate this column with a long for the font file ID. The client will request a file descriptor to "file/FILE_ID" with this ID immediately under the top-level content URI. If not present, the client will request a file descriptor to the top-level URI with the given base font ID. Note that several results may return the same file ID, e.g. for TTC files with different indices.
Value: "file_id"
ITALIC
static val ITALIC: String
Constant used to request data from a font provider. The cursor returned from the query should have this column populated with the int italic for the resulting font. This should be 0 for regular style and 1 for italic.
Value: android.provider.FontsContract.Columns.ITALIC
RESULT_CODE
static val RESULT_CODE: String
Constant used to request data from a font provider. The cursor returned from the query should have this column populated to indicate the result status of the query. This will be checked before any other data in the cursor. Possible values are RESULT_CODE_OK
, RESULT_CODE_FONT_NOT_FOUND
, RESULT_CODE_MALFORMED_QUERY
and RESULT_CODE_FONT_UNAVAILABLE
. If not present, RESULT_CODE_OK
will be assumed.
Value: android.provider.FontsContract.Columns.RESULT_CODE
RESULT_CODE_FONT_NOT_FOUND
static val RESULT_CODE_FONT_NOT_FOUND: Int
Constant used to represent a result was not found. See RESULT_CODE
.
Value: android.provider.FontsContract.Columns.RESULT_CODE_FONT_NOT_FOUND
RESULT_CODE_FONT_UNAVAILABLE
static val RESULT_CODE_FONT_UNAVAILABLE: Int
Constant used to represent a result was found, but cannot be provided at this moment. Use this to indicate, for example, that a font needs to be fetched from the network. See RESULT_CODE
.
Value: android.provider.FontsContract.Columns.RESULT_CODE_FONT_UNAVAILABLE
RESULT_CODE_MALFORMED_QUERY
static val RESULT_CODE_MALFORMED_QUERY: Int
Constant used to represent that the query was not in a supported format by the provider. See RESULT_CODE
.
Value: android.provider.FontsContract.Columns.RESULT_CODE_MALFORMED_QUERY
RESULT_CODE_OK
static val RESULT_CODE_OK: Int
Constant used to represent a result was retrieved successfully. The given fonts will be attempted to retrieve immediately via android.content.ContentProvider#openFile(Uri, String)
. See RESULT_CODE
.
Value: android.provider.FontsContract.Columns.RESULT_CODE_OK
TTC_INDEX
static val TTC_INDEX: String
Constant used to request data from a font provider. The cursor returned from the query should have this column populated with an int for the ttc index for the resulting font.
Value: android.provider.FontsContract.Columns.TTC_INDEX
VARIATION_SETTINGS
static val VARIATION_SETTINGS: String
Constant used to request data from a font provider. The cursor returned from the query may populate this column with the font variation settings String information for the font.
Value: android.provider.FontsContract.Columns.VARIATION_SETTINGS
WEIGHT
static val WEIGHT: String
Constant used to request data from a font provider. The cursor returned from the query should have this column populated with the int weight for the resulting font. This value should be between 100 and 900. The most common values are 400 for regular weight and 700 for bold weight.
Value: android.provider.FontsContract.Columns.WEIGHT
Public constructors
<init>
Columns()
Defines the constants used in a response from a Font Provider. The cursor returned from the query should have the ID column populated with the content uri ID for the resulting font. This should point to a real file or shared memory, as the client will mmap the given file descriptor. Pipes, sockets and other non-mmap-able file descriptors will fail to load in the client application.