Android Open Source - snappyfrog S L Compose View Controller






From Project

Back to project page snappyfrog.

License

The source code is released under:

Apache License

If you think the Android project snappyfrog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.masseranolabs.bridge;
/*ww  w. j a va 2 s  .  c  o  m*/
import org.robovm.apple.foundation.NSString;
import org.robovm.apple.uikit.UIImage;
import org.robovm.apple.uikit.UIViewController;
import org.robovm.objc.ObjCClass;
import org.robovm.objc.ObjCRuntime;
import org.robovm.objc.Selector;
import org.robovm.objc.annotation.NativeClass;
import org.robovm.rt.bro.annotation.Bridge;
import org.robovm.rt.bro.annotation.Library;

@Library("Social")
@NativeClass
public class SLComposeViewController extends UIViewController {
  static {
    ObjCRuntime.bind(SLComposeViewController.class);
  }

  private SLComposeViewController () {
  }

  private static final ObjCClass objCClass = ObjCClass.getByType(SLComposeViewController.class);

  // + (BOOL)isAvailableForServiceType:(NSString *)serviceType;
  private static final Selector isAvailableForServiceType$ = Selector.register("isAvailableForServiceType:");

  @Bridge
  private native static boolean objc_isAvailableForServiceType (ObjCClass __self__, Selector __cmd__, NSString serviceType);

  public static boolean isAvailable (NSString serviceType) {
    return objc_isAvailableForServiceType(objCClass, isAvailableForServiceType$, serviceType);
  }

  public static final NSString ServiceTypeTwitter = new NSString("com.apple.social.twitter");
  public static final NSString ServiceTypeFacebook = new NSString("com.apple.social.facebook");
  public static final NSString ServiceTypeSinaWeibo = new NSString("com.apple.social.sinaweibo");

   // + (SLComposeViewController *)composeViewControllerForServiceType:(NSString *)serviceType;
   private static final Selector composeViewControllerForServiceType$ = Selector.register("composeViewControllerForServiceType:");
  
   @Bridge
   private native static SLComposeViewController objc_composeViewControllerForServiceType (ObjCClass __self__, Selector __cmd__,
   NSString serviceType);
  
   public static SLComposeViewController fromService (NSString serviceType) {
   return objc_composeViewControllerForServiceType(objCClass, composeViewControllerForServiceType$, serviceType);
   }
  
   //@property (nonatomic, copy) SLComposeViewControllerCompletionHandler completionHandler;
   /*
   private static final Selector setCompletionHandler$ = Selector.register("setCompletionHandler:");

   @Bridge
   private native static void objc_setCompletionHandler (SLComposeViewController __self__, Selector __cmd__,
   SLComposeViewControllerResultHandler completionHandler);
  
   public void setCompletionHandler (SLComposeViewControllerResultHandler completionHandler) {
   objc_setCompletionHandler(this, setCompletionHandler$, completionHandler);
   }*/
  
   // - (BOOL)setInitialText:(NSString *)text;
   private static final Selector setInitialText$ = Selector.register("setInitialText:");
  
   @Bridge
   private native static boolean objc_setInitialText (SLComposeViewController __self__, Selector __cmd__, String text);
  
   public boolean setInitialText (String text) {
   return objc_setInitialText(this, setInitialText$, text);
   }
   
   // - (BOOL)addImage:(UIImage *)image
   private static final Selector addImage$ = Selector.register("addImage:");
   
   @Bridge
   private native static boolean objc_addImage (SLComposeViewController __self__, Selector __cmd__, UIImage image);
   
   public boolean addImage(UIImage image){
     return objc_addImage(this, addImage$, image);
   }
}




Java Source Code List

com.masseranolabs.bridge.SLComposeViewController.java
com.masseranolabs.snappyfrog.AndroidServices.java
com.masseranolabs.snappyfrog.ButtonFactory.java
com.masseranolabs.snappyfrog.DesktopServices.java
com.masseranolabs.snappyfrog.Explosion.java
com.masseranolabs.snappyfrog.Frog.java
com.masseranolabs.snappyfrog.Game.java
com.masseranolabs.snappyfrog.LaserBeam.java
com.masseranolabs.snappyfrog.LevelScreen.java
com.masseranolabs.snappyfrog.MainActivity.java
com.masseranolabs.snappyfrog.MainActivity.java
com.masseranolabs.snappyfrog.Main.java
com.masseranolabs.snappyfrog.Obstacle.java
com.masseranolabs.snappyfrog.OuyaServices.java
com.masseranolabs.snappyfrog.PlatformServices.java
com.masseranolabs.snappyfrog.PowerBar.java
com.masseranolabs.snappyfrog.ResHelper.java
com.masseranolabs.snappyfrog.RobovmLauncher.java
com.masseranolabs.snappyfrog.Salary.java
com.masseranolabs.snappyfrog.ScreenshotFactory.java
com.masseranolabs.snappyfrog.StagedScreen.java
com.masseranolabs.snappyfrog.client.GwtLauncher.java
com.masseranolabs.snappyfrog.client.HtmlServices.java
com.masseranolabs.snappyfrog.iOSServices.java
org.robovm.bindings.admob.GADAdMobExtras.java
org.robovm.bindings.admob.GADAdNetworkExtras.java
org.robovm.bindings.admob.GADAdSizeManager.java
org.robovm.bindings.admob.GADAdSize.java
org.robovm.bindings.admob.GADBannerViewDelegateAdapter.java
org.robovm.bindings.admob.GADBannerViewDelegate.java
org.robovm.bindings.admob.GADBannerView.java
org.robovm.bindings.admob.GADErrorCode.java
org.robovm.bindings.admob.GADGender.java
org.robovm.bindings.admob.GADInterstitialDelegateAdapter.java
org.robovm.bindings.admob.GADInterstitialDelegate.java
org.robovm.bindings.admob.GADInterstitial.java
org.robovm.bindings.admob.GADRequestErrorConstants.java
org.robovm.bindings.admob.GADRequestError.java
org.robovm.bindings.admob.GADRequest.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialAdapter.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialDelegateAdapter.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialDelegate.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitial.java
org.robovm.bindings.admob.mediation.GADCustomEventRequest.java
org.robovm.bindings.admob.sample.Sample.java