C# 클래스 SWorker.SocialWorker

SocialWorker
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: okamura0510/SocialWorker 1 사용 예제들

공개 메소드들

메소드 설명
CreateChooser ( string message, string imagePath, Action onResult = null ) : void

アプリ選択式での投稿

OnSocialWorkerResult ( string res ) : void

結果コールバック。ネイティブプラグイン側から呼ばれるコールバック。

PostFacebook ( string imagePath, Action onResult = null ) : void

Facebook投稿。ただしFacebookは画像の投稿のみ許可しており、テキストの投稿は無視されることに注意。

PostInstagram ( string imagePath, Action onResult = null ) : void

Instagram投稿。Instagramは画像の投稿のみ行える。

PostLine ( string message, string imagePath, Action onResult = null ) : void

Line投稿。Lineはメッセージと画像の同時投稿は行えないことに注意。

PostMail ( string message, string imagePath, Action onResult = null ) : void

メール投稿

PostMail ( string to, string cc, string bcc, string subject, string message, string imagePath, Action onResult = null ) : void

メール投稿

PostTwitter ( string message, string imagePath, Action onResult = null ) : void

Twitter投稿

PostTwitter ( string message, string url, string imagePath, Action onResult = null ) : void

Twitter投稿

비공개 메소드들

메소드 설명
Awake ( ) : void

初期化処理

createChooser ( string message, string imagePath ) : void
postInstagram ( string imagePath ) : void
postLine ( string message, string imagePath ) : void
postMail ( string to, string cc, string bcc, string subject, string message, string imagePath ) : void
postTwitterOrFacebook ( bool isTwitter, string message, string url, string imagePath ) : void

메소드 상세

CreateChooser() 공개 정적인 메소드

アプリ選択式での投稿
public static CreateChooser ( string message, string imagePath, Action onResult = null ) : void
message string メッセージ
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

OnSocialWorkerResult() 공개 메소드

結果コールバック。ネイティブプラグイン側から呼ばれるコールバック。
public OnSocialWorkerResult ( string res ) : void
res string 結果値
리턴 void

PostFacebook() 공개 정적인 메소드

Facebook投稿。ただしFacebookは画像の投稿のみ許可しており、テキストの投稿は無視されることに注意。
public static PostFacebook ( string imagePath, Action onResult = null ) : void
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

PostInstagram() 공개 정적인 메소드

Instagram投稿。Instagramは画像の投稿のみ行える。
public static PostInstagram ( string imagePath, Action onResult = null ) : void
imagePath string 画像パス(PNG/JPGのみ)
onResult Action 結果コールバック
리턴 void

PostLine() 공개 정적인 메소드

Line投稿。Lineはメッセージと画像の同時投稿は行えないことに注意。
public static PostLine ( string message, string imagePath, Action onResult = null ) : void
message string メッセージ
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

PostMail() 공개 정적인 메소드

メール投稿
public static PostMail ( string message, string imagePath, Action onResult = null ) : void
message string メッセージ
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

PostMail() 공개 정적인 메소드

メール投稿
public static PostMail ( string to, string cc, string bcc, string subject, string message, string imagePath, Action onResult = null ) : void
to string 宛先。カンマ区切りの配列。
cc string CC。カンマ区切りの配列。
bcc string BCC。カンマ区切りの配列。
subject string タイトル
message string メッセージ
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

PostTwitter() 공개 정적인 메소드

Twitter投稿
public static PostTwitter ( string message, string imagePath, Action onResult = null ) : void
message string メッセージ
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void

PostTwitter() 공개 정적인 메소드

Twitter投稿
public static PostTwitter ( string message, string url, string imagePath, Action onResult = null ) : void
message string メッセージ
url string URL。空文字の場合は処理されない。
imagePath string 画像パス(PNG/JPGのみ)。空文字の場合は処理されない。
onResult Action 結果コールバック
리턴 void