Documentation ¶
Index ¶
- Variables
- type JPush
- func (m *JPush) SendMessage(payload *pushSDK.PayLoad) error
- func (m *JPush) SetAudience(isAll bool, ids []string, tags []string, tagAnds []string, alias []string) *pushSDK.Audience
- func (m *JPush) SetMessage(title string, content string) *pushSDK.Message
- func (m *JPush) SetNotice(alertText string, androidText string, iOSText string, winPhoneText string) *pushSDK.Notice
- func (m *JPush) SetPayload(platform *pushSDK.Platform, audience *pushSDK.Audience, notice *pushSDK.Notice, ...) *pushSDK.PayLoad
- func (m *JPush) SetPlatform(platform string) *pushSDK.Platform
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type JPush ¶
type JPush struct { // conf: AppKey string // JPush key AppSecret string // contains filtered or unexported fields }
func (*JPush) SetAudience ¶
func (m *JPush) SetAudience(isAll bool, ids []string, tags []string, tagAnds []string, alias []string) *pushSDK.Audience
设置被推送范围: 用户ID/用户 tag 等
func (*JPush) SetMessage ¶
设置推送消息报文内容:
func (*JPush) SetNotice ¶
func (m *JPush) SetNotice(alertText string, androidText string, iOSText string, winPhoneText string) *pushSDK.Notice
设置推送弹出提示:
Click to show internal directories.
Click to hide internal directories.