[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface UnparsedNotificationCallback (2.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.1 (latest)](/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.8.0](/java/docs/reference/google-api-client/2.8.0/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.7.2](/java/docs/reference/google-api-client/2.7.2/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.6.0](/java/docs/reference/google-api-client/2.6.0/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.5.1](/java/docs/reference/google-api-client/2.5.1/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.4.1](/java/docs/reference/google-api-client/2.4.1/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.1.2](/java/docs/reference/google-api-client/2.1.2/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [2.0.1](/java/docs/reference/google-api-client/2.0.1/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [1.35.2](/java/docs/reference/google-api-client/1.35.2/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [1.34.1](/java/docs/reference/google-api-client/1.34.1/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback)\n- [1.33.4](/java/docs/reference/google-api-client/1.33.4/com.google.api.client.googleapis.notifications.UnparsedNotificationCallback) \n\n public interface UnparsedNotificationCallback extends Serializable\n\nBeta \n\nCallback to receive unparsed notifications for watched resource.\n\nMust NOT be implemented in form of an anonymous class since this would break serialization.\n\nShould be thread-safe as several notifications might be processed at the same time. **Example\nusage:** \n\n\n static class MyNotificationCallback implements UnparsedNotificationCallback {\n\n private static final long serialVersionUID = 1L;\n\n {@literal @}Override\n public void onNotification(StoredChannel storedChannel, UnparsedNotification notification) {\n String contentType = notification.getContentType();\n InputStream contentStream = notification.getContentStream();\n switch (notification.getResourceState()) {\n case ResourceStates.SYNC:\n break;\n case ResourceStates.EXISTS:\n break;\n case ResourceStates.NOT_EXISTS:\n break;\n }\n }\n }\n \nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html)\n\nMethods\n-------\n\n### onNotification(StoredChannel storedChannel, UnparsedNotification notification)\n\n public abstract void onNotification(StoredChannel storedChannel, UnparsedNotification notification)\n\nHandles a received unparsed notification."]]