Android APIs
Added in API level 21
package

android.media.projection

Classes

MediaProjection A token granting applications the ability to capture screen contents and/or record system audio. 
MediaProjection.Callback Callbacks for the projection session. 
MediaProjectionManager Manages the retrieval of certain types of MediaProjection tokens.