setSource
Allows a Material to be created with data.
Construction will be immediate. Please use setRegistryId to register this material for reuse.
Return
Builder for chaining setup calls
Parameters
Sets the material data.
Allows a Material to be constructed from Uri. Construction will be asynchronous.
Return
Builder for chaining setup calls
Parameters
Sets the Context used for loading the resource
Sets a remote Uri or android resource Uri. The material will be added to the registry using the Uri. A previously registered material with the same Uri will be re-used.
Allows a Material to be constructed from resource.
Construction will be asynchronous.
Return
Builder for chaining setup calls
Parameters
Sets the Context used for loading the resource
an android resource with raw type. A previously registered material with the same resource id will be re-used.
Allows a Material to be constructed via callable function.
Return
Builder for chaining setup calls
Parameters
Supplies an InputStream with the Material data