Metadata Access in Apex

If you’re an ISV creating apps that use custom metadata components, you can now access metadata using Apex. This change applies to both Lightning Experience and Salesforce Classic.
Available in: Developer Edition

During or after an install (or upgrade), your app can create or update metadata to let users configure your app. Use the new Metadata namespace for accessing metadata in Apex code. The Metadata namespace contains classes that represent metadata types and components as well as classes that let you retrieve or deploy metadata components in the subscriber org. For more information, see Retrieve and Deploy Metadata in Apex.