Custom Fields via Plugin

Hello,

I want to create the following CustomFields via a plugin:

  • CHECKBOX

  • MEDIA (Images)

Is this possible?

Are there any code snippets available? (‘type’ => CustomFieldTypes:: ???,