public void OnSelectSnapshotResult(bool success, AndroidJavaObject metadata, bool isNew) { if (mListener != null) { Logger.d("SelectSnapshotProxy.OnSelectSnapshotResult invoke callback."); SnapshotMetadataAndroid meta = success ? new SnapshotMetadataAndroid(mClient, metadata) : null; mListener.OnSelectSnapshotResult(success, meta, isNew); } }
public void StartSelectSnapshotActivity(string title, bool allowAdd, bool allowDelete, int maxSnapshots, OnSnapshotResultListener listener) { if (!IsAuthenticated()) { Logger.e("StartSelectSnapshotActivity can only be called after authentication."); if (listener != null) { listener.OnSelectSnapshotResult(false, null, false); } return; } mClient.StartSelectSnapshotActivity(title, allowAdd, allowDelete, maxSnapshots, listener); }