Skip to content

connect-sdk / de.proglove.sdk.display / PgScreenData

PgScreenData

data class PgScreenData :IPgCommandData<PgScreenData>

This object holds the data for updating a screen on a ProGlove display device.

Constructors

Name Summary
<init> PgScreenData(templateId:String, templateFields:Array<PgTemplateField>, refreshType:RefreshType= RefreshType.DEFAULT, durationMs:Int= 0)
This object holds the data for updating a screen on a ProGlove display device.PgScreenData(templateId:String, templateFields:Iterable<PgTemplateField>, refreshType:RefreshType= RefreshType.DEFAULT, durationMs:Int= 0)

Properties

Name Summary
durationMs The duration for how long the notification should be displayed. Only used when sent with de.proglove.sdk.IPgManager.setNotificationScreen, must be >0 in that case. An automatic transition back to the previous screen will take place after this time. A notification can be replaced by any other notification and by a new screen. Depending on your implementation, this is thus only an upper limit on the time this notification will be shown.val durationMs:Int
refreshType The RefreshType type to be used while setting this screen.val refreshType:RefreshType
templateFields A list of PgTemplateFields which hold the data for header and content for each field in the templateval templateFields:Iterable<PgTemplateField>
templateId The id of teh template to be used to construct the screenval templateId:String