Add sample code for notifyEntryStateOnDisaplay.