| // Copyright 2018 The Feed Authors. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| package com.google.android.libraries.feed.hostimpl.logging; |
| |
| import com.google.android.libraries.feed.host.logging.BasicLoggingApi; |
| import com.google.android.libraries.feed.host.logging.ContentLoggingData; |
| import com.google.android.libraries.feed.host.logging.ElementLoggingData; |
| import java.util.List; |
| |
| /** {@link BasicLoggingApi} implementation that no-ops for all methods. */ |
| public final class NoOpBasicLoggingApi implements BasicLoggingApi { |
| |
| @Override |
| public void onContentViewed(ContentLoggingData data) {} |
| |
| @Override |
| public void onContentDismissed(ContentLoggingData data, boolean wasCommitted) {} |
| |
| @Override |
| public void onContentSwiped(ContentLoggingData data) {} |
| |
| @Override |
| public void onContentClicked(ContentLoggingData data) {} |
| |
| @Override |
| public void onClientAction(ContentLoggingData data, int actionType) {} |
| |
| @Override |
| public void onContentContextMenuOpened(ContentLoggingData data) {} |
| |
| @Override |
| public void onMoreButtonViewed(int position) {} |
| |
| @Override |
| public void onMoreButtonClicked(int position) {} |
| |
| @Override |
| public void onNotInterestedIn(int interestType, ContentLoggingData data, boolean wasCommitted) {} |
| |
| @Override |
| public void onOpenedWithContent(int timeToPopulateMs, int contentCount) {} |
| |
| @Override |
| public void onOpenedWithNoImmediateContent() {} |
| |
| @Override |
| public void onOpenedWithNoContent() {} |
| |
| @Override |
| public void onSpinnerStarted(int spinnerType) {} |
| |
| @Override |
| public void onSpinnerFinished(int timeShownMs, int spinnerType) {} |
| |
| @Override |
| public void onSpinnerDestroyedWithoutCompleting(int timeShownMs, int spinnerType) {} |
| |
| @Override |
| public void onPietFrameRenderingEvent(List<Integer> pietErrorCodes) {} |
| |
| @Override |
| public void onVisualElementClicked(ElementLoggingData data, int elementType) {} |
| |
| @Override |
| public void onVisualElementViewed(ElementLoggingData data, int elementType) {} |
| |
| @Override |
| public void onInternalError(int internalError) {} |
| |
| @Override |
| public void onTokenCompleted(boolean wasSynthetic, int contentCount, int tokenCount) {} |
| |
| @Override |
| public void onTokenFailedToComplete(boolean wasSynthetic, int failureCount) {} |
| |
| @Override |
| public void onServerRequest(int requestReason) {} |
| |
| @Override |
| public void onZeroStateShown(int zeroStateShowReason) {} |
| |
| @Override |
| public void onZeroStateRefreshCompleted(int newContentCount, int newTokenCount) {} |
| |
| @Override |
| public void onInitialSessionEvent( |
| int sessionEvent, int timeFromRegisteringMs, int sessionCount) {} |
| |
| @Override |
| public void onScroll(int scrollType, int distanceScrolled) {} |
| } |