You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

301 lines
18 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="API docs for the ShareSDK class from the sharesdk_interface library, for the Dart programming language.">
<title>ShareSDK class - sharesdk_interface library - Dart API</title>
<!-- required because all the links are pseudo-absolute -->
<base href="..">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
<link rel="stylesheet" href="static-assets/github.css">
<link rel="stylesheet" href="static-assets/styles.css">
<link rel="icon" href="static-assets/favicon.png">
</head>
<body>
<div id="overlay-under-drawer"></div>
<header id="title">
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="index.html">sharesdk</a></li>
<li><a href="sharesdk_interface/sharesdk_interface-library.html">sharesdk_interface</a></li>
<li class="self-crumb">ShareSDK class</li>
</ol>
<div class="self-name">ShareSDK</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<main>
<div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
<h5>sharesdk_interface library</h5>
<ol>
<li class="section-title"><a href="sharesdk_interface/sharesdk_interface-library.html#classes">Classes</a></li>
<li><a href="sharesdk_interface/ShareSDK-class.html">ShareSDK</a></li>
</ol>
</div>
<div class="col-xs-12 col-sm-9 col-md-8 main-content">
<h1>ShareSDK class</h1>
<section class="summary offset-anchor" id="constructors">
<h2>Constructors</h2>
<dl class="constructor-summary-list">
<dt id="ShareSDK" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/ShareSDK.html">ShareSDK</a></span><span class="signature">()</span>
</dt>
<dd>
</dd>
</dl>
</section>
<section class="summary offset-anchor inherited" id="instance-properties">
<h2>Properties</h2>
<dl class="properties">
<dt id="hashCode" class="property inherited">
<span class="name"><a href="sharesdk_interface/ShareSDK/hashCode.html">hashCode</a></span>
<span class="signature">&#8594; int</span>
</dt>
<dd class="inherited">
The hash code for this object. <a href="sharesdk_interface/ShareSDK/hashCode.html">[...]</a>
<div class="features">read-only, inherited</div>
</dd>
<dt id="runtimeType" class="property inherited">
<span class="name"><a href="sharesdk_interface/ShareSDK/runtimeType.html">runtimeType</a></span>
<span class="signature">&#8594; Type</span>
</dt>
<dd class="inherited">
A representation of the runtime type of the object.
<div class="features">read-only, inherited</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor inherited" id="instance-methods">
<h2>Methods</h2>
<dl class="callables">
<dt id="noSuchMethod" class="callable inherited">
<span class="name"><a href="sharesdk_interface/ShareSDK/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation">Invocation</span> <span class="parameter-name">invocation</span></span>)
<span class="returntype parameter">&#8594; dynamic</span>
</span>
</dt>
<dd class="inherited">
Invoked when a non-existent method or property is accessed. <a href="sharesdk_interface/ShareSDK/noSuchMethod.html">[...]</a>
<div class="features">@pragma(&quot;vm:entry-point&quot;), inherited</div>
</dd>
<dt id="toString" class="callable inherited">
<span class="name"><a href="sharesdk_interface/ShareSDK/toString.html">toString</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; String</span>
</span>
</dt>
<dd class="inherited">
Returns a string representation of this object.
<div class="features">inherited</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor inherited" id="operators">
<h2>Operators</h2>
<dl class="callables">
<dt id="operator ==" class="callable inherited">
<span class="name"><a href="sharesdk_interface/ShareSDK/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
<span class="returntype parameter">&#8594; bool</span>
</span>
</dt>
<dd class="inherited">
The equality operator. <a href="sharesdk_interface/ShareSDK/operator_equals.html">[...]</a>
<div class="features">inherited</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor" id="static-properties">
<h2>Static Properties</h2>
<dl class="properties">
<dt id="sdkVersion" class="property">
<span class="name"><a href="sharesdk_interface/ShareSDK/sdkVersion.html">sdkVersion</a></span>
<span class="signature">&#8594; Future</span>
</dt>
<dd>
获取sdk版本号
<div class="features">read-only</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor" id="static-methods">
<h2>Static Methods</h2>
<dl class="callables">
<dt id="activePlatforms" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/activePlatforms.html">activePlatforms</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
已集成的平台
</dd>
<dt id="auth" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/auth.html">auth</a></span><span class="signature">(<wbr><span class="parameter" id="auth-param-platform"><span class="type-annotation"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span> <span class="parameter-name">platform</span>, </span> <span class="parameter" id="auth-param-settings"><span class="type-annotation">Map</span> <span class="parameter-name">settings</span>, </span> <span class="parameter" id="auth-param-result"><span class="type-annotation">dynamic</span> <span class="parameter-name">result</span>(<span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKResponseState-class.html">SSDKResponseState</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKError-class.html">SSDKError</a></span></span>)</span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
授权
</dd>
<dt id="cancelAuth" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/cancelAuth.html">cancelAuth</a></span><span class="signature">(<wbr><span class="parameter" id="cancelAuth-param-platform"><span class="type-annotation">int</span> <span class="parameter-name">platform</span></span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
取消授权
</dd>
<dt id="getUserInfo" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/getUserInfo.html">getUserInfo</a></span><span class="signature">(<wbr><span class="parameter" id="getUserInfo-param-platform"><span class="type-annotation">int</span> <span class="parameter-name">platform</span>, </span> <span class="parameter" id="getUserInfo-param-result"><span class="type-annotation">dynamic</span> <span class="parameter-name">result</span>(<span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKResponseState-class.html">SSDKResponseState</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKError-class.html">SSDKError</a></span></span>)</span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
获取用户信息
</dd>
<dt id="hasAuthed" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/hasAuthed.html">hasAuthed</a></span><span class="signature">(<wbr><span class="parameter" id="hasAuthed-param-platform"><span class="type-annotation">int</span> <span class="parameter-name">platform</span></span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
判断是否授权
</dd>
<dt id="openWeChatMiniProgram" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/openWeChatMiniProgram.html">openWeChatMiniProgram</a></span><span class="signature">(<wbr><span class="parameter" id="openWeChatMiniProgram-param-userName"><span class="type-annotation">String</span> <span class="parameter-name">userName</span>, </span> <span class="parameter" id="openWeChatMiniProgram-param-path"><span class="type-annotation">String</span> <span class="parameter-name">path</span>, </span> <span class="parameter" id="openWeChatMiniProgram-param-miniProgramType"><span class="type-annotation">int</span> <span class="parameter-name">miniProgramType</span></span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
打开微信小程序
</dd>
<dt id="regist" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/regist.html">regist</a></span><span class="signature">(<wbr><span class="parameter" id="regist-param-register"><span class="type-annotation"><a href="sharesdk_register/ShareSDKRegister-class.html">ShareSDKRegister</a></span> <span class="parameter-name">register</span></span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
注册方法: <a href="sharesdk_interface/ShareSDK/regist.html">[...]</a>
</dd>
<dt id="share" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/share.html">share</a></span><span class="signature">(<wbr><span class="parameter" id="share-param-platform"><span class="type-annotation"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span> <span class="parameter-name">platform</span>, </span> <span class="parameter" id="share-param-params"><span class="type-annotation"><a href="sharesdk_map/SSDKMap-class.html">SSDKMap</a></span> <span class="parameter-name">params</span>, </span> <span class="parameter" id="share-param-result"><span class="type-annotation">dynamic</span> <span class="parameter-name">result</span>(<span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKResponseState-class.html">SSDKResponseState</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKError-class.html">SSDKError</a></span></span>)</span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
分享函数
</dd>
<dt id="showEditor" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/showEditor.html">showEditor</a></span><span class="signature">(<wbr><span class="parameter" id="showEditor-param-platform"><span class="type-annotation"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span> <span class="parameter-name">platform</span>, </span> <span class="parameter" id="showEditor-param-params"><span class="type-annotation"><a href="sharesdk_map/SSDKMap-class.html">SSDKMap</a></span> <span class="parameter-name">params</span>, </span> <span class="parameter" id="showEditor-param-result"><span class="type-annotation">dynamic</span> <span class="parameter-name">result</span>(<span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKResponseState-class.html">SSDKResponseState</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKError-class.html">SSDKError</a></span></span>)</span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
弹出编辑菜单
</dd>
<dt id="showMenu" class="callable">
<span class="name"><a href="sharesdk_interface/ShareSDK/showMenu.html">showMenu</a></span><span class="signature">(<wbr><span class="parameter" id="showMenu-param-platforms"><span class="type-annotation">List<span class="signature">&lt;<wbr><span class="type-parameter"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span>&gt;</span></span> <span class="parameter-name">platforms</span>, </span> <span class="parameter" id="showMenu-param-params"><span class="type-annotation"><a href="sharesdk_map/SSDKMap-class.html">SSDKMap</a></span> <span class="parameter-name">params</span>, </span> <span class="parameter" id="showMenu-param-result"><span class="type-annotation">dynamic</span> <span class="parameter-name">result</span>(<span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKResponseState-class.html">SSDKResponseState</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/ShareSDKPlatform-class.html">ShareSDKPlatform</a></span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation">Map</span>, </span> <span class="parameter" id="result-param-"><span class="type-annotation"><a href="sharesdk_defines/SSDKError-class.html">SSDKError</a></span></span>)</span>)
<span class="returntype parameter">&#8594; Future</span>
</span>
</dt>
<dd>
弹出分享菜单
</dd>
</dl>
</section>
</div> <!-- /.main-content -->
<div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
<ol>
<li class="section-title"><a href="sharesdk_interface/ShareSDK-class.html#constructors">Constructors</a></li>
<li><a href="sharesdk_interface/ShareSDK/ShareSDK.html">ShareSDK</a></li>
<li class="section-title inherited">
<a href="sharesdk_interface/ShareSDK-class.html#instance-properties">Properties</a>
</li>
<li class="inherited"><a href="sharesdk_interface/ShareSDK/hashCode.html">hashCode</a></li>
<li class="inherited"><a href="sharesdk_interface/ShareSDK/runtimeType.html">runtimeType</a></li>
<li class="section-title inherited"><a href="sharesdk_interface/ShareSDK-class.html#instance-methods">Methods</a></li>
<li class="inherited"><a href="sharesdk_interface/ShareSDK/noSuchMethod.html">noSuchMethod</a></li>
<li class="inherited"><a href="sharesdk_interface/ShareSDK/toString.html">toString</a></li>
<li class="section-title inherited"><a href="sharesdk_interface/ShareSDK-class.html#operators">Operators</a></li>
<li class="inherited"><a href="sharesdk_interface/ShareSDK/operator_equals.html">operator ==</a></li>
<li class="section-title"><a href="sharesdk_interface/ShareSDK-class.html#static-properties">Static properties</a></li>
<li><a href="sharesdk_interface/ShareSDK/sdkVersion.html">sdkVersion</a></li>
<li class="section-title"><a href="sharesdk_interface/ShareSDK-class.html#static-methods">Static methods</a></li>
<li><a href="sharesdk_interface/ShareSDK/activePlatforms.html">activePlatforms</a></li>
<li><a href="sharesdk_interface/ShareSDK/auth.html">auth</a></li>
<li><a href="sharesdk_interface/ShareSDK/cancelAuth.html">cancelAuth</a></li>
<li><a href="sharesdk_interface/ShareSDK/getUserInfo.html">getUserInfo</a></li>
<li><a href="sharesdk_interface/ShareSDK/hasAuthed.html">hasAuthed</a></li>
<li><a href="sharesdk_interface/ShareSDK/openWeChatMiniProgram.html">openWeChatMiniProgram</a></li>
<li><a href="sharesdk_interface/ShareSDK/regist.html">regist</a></li>
<li><a href="sharesdk_interface/ShareSDK/share.html">share</a></li>
<li><a href="sharesdk_interface/ShareSDK/showEditor.html">showEditor</a></li>
<li><a href="sharesdk_interface/ShareSDK/showMenu.html">showMenu</a></li>
</ol>
</div><!--/.sidebar-offcanvas-->
</main>
<footer>
<span class="no-break">
sharesdk 0.0.1
</span>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
</body>
</html>