Android.PrintServices.PrintService.ServiceMetaData Field
Name under which a Android.PrintServices.PrintService component publishes additional information about itself.

Syntax

[Android.Runtime.Register("SERVICE_META_DATA")]
public const string ServiceMetaData

Remarks

Name under which a Android.PrintServices.PrintService component publishes additional information about itself. This meta-data must reference a XML resource containing a <NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#PrintService> tag. This is a sample XML file configuring a print service:

xml Example

 <print-service
     android:vendor="SomeVendor"
     android:settingsActivity="foo.bar.MySettingsActivity"
     andorid:addPrintersActivity="foo.bar.MyAddPrintersActivity."
     . . .
 />

For detailed configuration options that can be specified via the meta-data refer to NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#PrintService.

If you declare a settings or add a printers activity, they have to be exported, by setting the NoType:android/R$attr;Href=../../../reference/android/R.attr.html#exported activity attribute to true . Also in case you want only the system to be able to start any of these activities you can specify that they request the android.permission .START_PRINT_SERVICE_CONFIG_ACTIVITY permission by setting the NoType:android/R$attr;Href=../../../reference/android/R.attr.html#permission activity attribute.

[Android Documentation]

Requirements

Namespace: Android.PrintServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0