Language

TypeManager Class

Definition

Provides legacy Java-to-managed name lookup and explicit type mapping.

public static class TypeManager
type TypeManager = class
Inheritance
TypeManager

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Name Description
LookupTypeMapping(String[], String)

Searches a sorted type mapping table and returns the mapped name.

RegisterPackage(String, Converter<String,Type>)

Throws NotSupportedException because package callback registration is no longer supported.

RegisterPackages(String[], Converter<String,Type>[])

Throws NotSupportedException because package callback registration is no longer supported.

RegisterType(String, Type)

Legacy implementations add a mapping only when the Java class name is unregistered. Newer implementations throw NotSupportedException; use [Register] on Java peer types instead.

Applies to