> For the complete documentation index, see [llms.txt](https://bos.gitbook.io/mobilebos/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bos.gitbook.io/mobilebos/yi-dong-biao-dan/yi-dong-te-xing-jie-kou.md).

# 移动特性接口

## 【二维码、条码扫描】

```
//点击扫描二维码
public override void AfterButtonClick(AfterButtonClickEventArgs e)
{
    this.View.CodeScan(); //调用二维码、条码扫描
}        
//扫描结果返回，参数e为二维码、条码结果字符串
public override void AfterCodeScan(string e)
{
    this.Model.SetValue("FCode", e);
}
```

## 【移动客户端地图定位】

```
public override void AfterButtonClick(AfterButtonClickEventArgs e)
{
    this.View.LocateMobileClient(LocationProvider.LBS_PROVIDER, true); //调用定位服务
}
//定位结果返回，参数e为位置信息
public override void AfterMobileClientLocated(MobileClientLocatedEventArgs e)
{
    //PlunInHelper.SaveSignInInfo(this.Context, e.Latitude, e.Longitude, e.Desc);
}
```

## 【发短信和打电话】

### 1 、首先我们来看看如何打电话&#x20;

```
JSONArray jsonArray = new JSONArray(); jsonArray.Add("13900000000"); //电话号码 
this.View.AddAction(JSAction.SendCall, jsonArray);
```

### 2 、再来看看如何发短信&#x20;

```
JSONArray jsonArray = new JSONArray(); jsonArray.Add("13900000000"); 
this.View.AddAction(JSAction.SendSMS, jsonArray);
```

## 4、发起云之家沟通&#x20;

```
//单个用户发起沟通
JSONObject config = new JSONObject();
config.Put("openId", openIds[0]);
this.View.AddAction("chatWithXT", config);
//发起群聊
JSONObject config = new JSONObject();
config.Put("shareType", "1");
config.Put("text", "采购xxxxxx");
config.Put("appId", "10037");
config.Put("appName", "业务审批";
config.Put("ignore", new List<string>());
config.Put("selected", openIds);
this.View.AddAction("shareWithXT", config);
//获取openId接口：
UserXunTongServiceHelper.GetXunTongOpenIds(Context ctx, List<string> userIds);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bos.gitbook.io/mobilebos/yi-dong-biao-dan/yi-dong-te-xing-jie-kou.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
