public class ShareModule extends NativeShareModuleSpec
NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
ShareModule(ReactApplicationContext reactContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
share(ReadableMap content,
java.lang.String dialogTitle,
Promise promise)
Open a chooser dialog to send text content to other apps.
|
getCurrentActivity, getReactApplicationContext, getReactApplicationContextIfActiveOrWarn
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate
public static final java.lang.String NAME
public ShareModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require()
this module
from javascript.public void share(ReadableMap content, java.lang.String dialogTitle, Promise promise)
Refer http://developer.android.com/intl/ko/training/sharing/send.html
share
in class NativeShareModuleSpec
content
- the data to senddialogTitle
- the title of the chooser dialog