public void CaptureFrame(MegacoolFrameCaptureConfig config) { AndroidJavaObject jConfig = new AndroidJavaObject("co.megacool.megacool.RecordingConfig"); // We have to use the generic version of Call here since the Java methods are not void, even // though we discard the return value jConfig.Call <AndroidJavaObject>("id", config.RecordingId); jConfig.Call <AndroidJavaObject>("maxFrames", config.MaxFrames); jConfig.Call <AndroidJavaObject>("peakLocation", config.PeakLocation); jConfig.Call <AndroidJavaObject>("frameRate", config.FrameRate); jConfig.Call <AndroidJavaObject>("playbackFrameRate", config.PlaybackFrameRate); jConfig.Call <AndroidJavaObject>("lastFrameDelay", config.LastFrameDelay); jConfig.Call <AndroidJavaObject>("overflowStrategy", config.OverflowStrategy.ToString()); // AndroidJavaObject jCrop = new AndroidJavaObject("android.graphics.Rect", // (int)config.Crop.xMin, (int)config.Crop.yMin, (int)config.Crop.xMax, (int)config.Crop.yMax); // jConfig.Call<AndroidJavaObject>("cropRect", jCrop); Android.Call("captureFrame", jConfig); }
public void ShareToMessages() { Android.Call("shareToMessages"); }
public void ShareToTwitter() { Android.Call("shareToTwitter"); }
public void ShareToMessenger() { Android.Call("shareToMessenger"); }
public void Share() { Android.Call("share"); }
public void Start(string config, Action <MegacoolEvent> eventHandler) { Android.Call("start", config, new OnEventsReceivedListener(eventHandler)); }
public void SubmitDebugData(string message) { Android.Call("submitDebugData", message); }
public void GetShares(Action <List <MegacoolShare> > shares, Func <MegacoolShare, bool> filter = null) { Android.Call <AndroidJavaObject>("getShares", new ShareCallback(shares), filter != null ? new ShareFilter(filter) : null); }
public void PauseRecording() { Android.Call("pauseRecording"); }
public void CaptureFrame() { Android.Call("captureFrame"); }
public void RegisterScoreChange(int scoreDelta) { Android.Call("registerScoreChange", scoreDelta); }
public MegacoolAndroidWrapper() { Android.Call("setActivity", CurrentActivity); }
public void StartRecording() { Android.Call("startRecording"); }
public void ShareToMail() { Android.Call("shareToMail"); }
public void StopRecording() { Android.Call("stopRecording"); }
public void ShareToMail(MegacoolShareConfig config) { Android.Call("shareToMail", config.RecordingId, config.FallbackImage, config.FallbackImage, config.LastFrameOverlay, config.Share.Url.ToString(), MegacoolThirdParty_MiniJSON.Json.Serialize(config.Share.Data)); }
public void DeleteRecording(string recordingId) { Android.Call("deleteRecording", recordingId); }
public void DeleteShares(Func <MegacoolShare, bool> filter) { Android.Call("deleteShares", new ShareFilter(filter)); }
public string GetPreviewInfoForRecording(string recordingId) { return(Android.Call <string>("getPreviewInfoForRecording", recordingId)); }
public void ResetIdentity() { Android.Call("resetIdentity"); }
public void StartWithConfig(string config) { Android.Call("startWithConfig", config); }